From c472f00445a91331e396511229f469de70302588 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 17 May 2025 19:08:12 +0000 Subject: Get rid of 'Db::past_comparison_qpart()'. With MySQL support dropped this function is just an unnecessary layer of abstraction. --- classes/RPC.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/RPC.php') diff --git a/classes/RPC.php b/classes/RPC.php index 6ce2c12aa..8ecec41f5 100644 --- a/classes/RPC.php +++ b/classes/RPC.php @@ -438,13 +438,12 @@ class RPC extends Handler_Protected { $data["labels"] = Labels::get_all($_SESSION["uid"]); if (Config::get(Config::LOG_DESTINATION) == 'sql' && $_SESSION['access_level'] >= UserHelper::ACCESS_LEVEL_ADMIN) { - $log_interval = Db::past_comparison_qpart('created_at', '>', 1, 'hour'); $sth = $pdo->prepare("SELECT COUNT(id) AS cid FROM ttrss_error_log WHERE errno NOT IN (".E_USER_NOTICE.", ".E_USER_DEPRECATED.") AND - $log_interval AND + created_at > NOW() - INTERVAL '1 hour' AND errstr NOT LIKE '%Returning bool from comparison function is deprecated%' AND errstr NOT LIKE '%imagecreatefromstring(): Data is not in a recognized format%'"); $sth->execute(); -- cgit v1.2.3-54-g00ecf