mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:35:55 +00:00
front page log checker: filter out idiotic GD warning
This commit is contained in:
@@ -534,7 +534,12 @@ class RPC extends Handler_Protected {
|
|||||||
$log_interval = "created_at > DATE_SUB(NOW(), INTERVAL 1 HOUR)";
|
$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();
|
$sth->execute();
|
||||||
|
|
||||||
if ($row = $sth->fetch()) {
|
if ($row = $sth->fetch()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user