Closed kim-fitness closed 3 years ago
Root cause: The following SQL is called after called function syslog_log_alert, which makes the $found always bigger than 0.
$found = syslog_db_fetch_cell('SELECT count(*)
FROM syslog_logs
WHERE alert_id=' . $alert['id'] . "
AND logtime>'$date'");