1
0
mirror of https://github.com/librenms/librenms.git synced 2024-10-07 16:52:45 +00:00

Fix alert log api ()

* Fix alert log api
Can't send binary data through http :D

* fix whitespace
This commit is contained in:
Tony Murray
2019-02-07 09:42:16 -06:00
committed by GitHub
parent 9eaca7f9d6
commit d2af4bef42

@ -2206,6 +2206,12 @@ function list_logs()
$full_query = $full_query . $query . " ORDER BY $timestamp ASC LIMIT $start,$limit";
$logs = dbFetchRows($full_query, $param);
if ($type === 'list_alertlog') {
foreach ($logs as $index => $log) {
$logs[$index]['details'] = json_decode(gzuncompress($log['details']), true);
}
}
api_success($logs, 'logs', null, 200, null, array('total' => $count));
}