From 6c8ccd2acca72f4fe0c2cd0c27329150bbf96a30 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 22:15:35 +0300 Subject: [PATCH] front page log checker: filter out idiotic GD warning --- classes/rpc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/rpc.php b/classes/rpc.php index fa5aa9a86..d4fdd1cd0 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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()) {