mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix reference (#9328)
This commit is contained in:
committed by
Neil Lathwood
parent
3aeab9ed7d
commit
0db8d0ca70
@@ -259,7 +259,7 @@ if ($options['f'] === 'refresh_alert_rules') {
|
||||
$rules = dbFetchRows('SELECT `id`, `rule`, `builder`, `extra` FROM `alert_rules`');
|
||||
foreach ($rules as $rule) {
|
||||
$rule_options = json_decode($rule['extra'], true);
|
||||
if ($rule_options['override_query'] !== 'on') {
|
||||
if ($rule_options['options']['override_query'] !== 'on') {
|
||||
$data['query'] = GenSQL($rule['rule'], $rule['builder']);
|
||||
if (!empty($data['query'])) {
|
||||
dbUpdate($data, 'alert_rules', 'id=?', array($rule['id']));
|
||||
|
Reference in New Issue
Block a user