front page log checker: filter out idiotic GD warning

This commit is contained in:
Andrew Dolgov 2021-02-08 22:15:35 +03:00
parent 9f3de2d24c
commit 6c8ccd2acc
1 changed files with 6 additions and 1 deletions

View File

@ -534,7 +534,12 @@ class RPC extends Handler_Protected {
$log_interval = "created_at > DATE_SUB(NOW(), INTERVAL 1 HOUR)";
}
$sth = $pdo->prepare("SELECT COUNT(id) AS cid FROM ttrss_error_log WHERE errno != 1024 AND $log_interval");
$sth = $pdo->prepare("SELECT COUNT(id) AS cid
FROM ttrss_error_log
WHERE
errno != 1024 AND
$log_interval AND
errstr NOT LIKE '%imagecreatefromstring(): Data is not in a recognized format%'");
$sth->execute();
if ($row = $sth->fetch()) {