mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed state flag causing sql issues in test-template.php (#15589)
This commit is contained in:
@ -21,7 +21,7 @@ if (isset($options['t']) && isset($options['h']) && isset($options['r'])) {
|
|||||||
|
|
||||||
$where = 'alerts.device_id=' . $device_id . ' && alerts.rule_id=' . $rule_id;
|
$where = 'alerts.device_id=' . $device_id . ' && alerts.rule_id=' . $rule_id;
|
||||||
if (isset($options['s'])) {
|
if (isset($options['s'])) {
|
||||||
$where .= ' alerts.state=' . (int) $options['s'];
|
$where .= ' && alerts.state=' . (int) $options['s'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$alerts = $runAlerts->loadAlerts($where);
|
$alerts = $runAlerts->loadAlerts($where);
|
||||||
|
Reference in New Issue
Block a user