Fixed state flag causing sql issues in test-template.php (#15589)

This commit is contained in:
Neil Lathwood
2023-11-17 13:23:49 +00:00
committed by GitHub
parent b27a3c5184
commit 2392153a9b

View File

@ -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);