mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Strip && and || from query for alerts in polling
This commit is contained in:
@@ -47,6 +47,9 @@ function GenGroupSQL($pattern, $search='') {
|
||||
}
|
||||
}
|
||||
|
||||
$pattern = rtrim($pattern, '&&');
|
||||
$pattern = rtrim($pattern, '||');
|
||||
|
||||
$tables = array_keys(array_flip($tables));
|
||||
$x = sizeof($tables);
|
||||
$i = 0;
|
||||
|
||||
Reference in New Issue
Block a user