mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for get_alert API method. Tested on MySQL-community 5.7.22 and MariaDB 10.2.14. (#8658)
This commit is contained in:
@@ -1014,7 +1014,7 @@ function list_alerts()
|
||||
$sql = '';
|
||||
if (isset($router['id']) && $router['id'] > 0) {
|
||||
$alert_id = mres($router['id']);
|
||||
$sql = 'AND id=?';
|
||||
$sql = 'AND `A`.id=?';
|
||||
array_push($param, $alert_id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user