From 8727fb3ba8a28da48c71bdd39166b9aeb3c3d986 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 8 Jan 2024 22:46:13 +0000 Subject: Clean up some unused variables. This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm. --- classes/RSSUtils.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'classes/RSSUtils.php') diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index ea3c074ab..751e1d9c7 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -873,7 +873,7 @@ class RSSUtils { $pdo->commit(); - $entry_obj = ORM::for_table('ttrss_entries') + ORM::for_table('ttrss_entries') ->find_one($base_entry_id) ->set('date_updated', Db::NOW()) ->save(); @@ -1028,7 +1028,7 @@ class RSSUtils { WHERE guid IN (?, ?, ?)"); $csth->execute([$entry_guid, $entry_guid_hashed, $entry_guid_hashed_compat]); - if (!$row = $csth->fetch()) { + if (!$csth->fetch()) { Debug::log("base guid [$entry_guid or $entry_guid_hashed] not found, creating...", Debug::LOG_VERBOSE); @@ -1746,7 +1746,6 @@ class RSSUtils { /** migrates favicons from legacy storage in feed-icons/ to cache/feed-icons/using new naming (sans .ico suffix) */ static function migrate_feed_icons() : void { $old_dir = Config::get(Config::ICONS_DIR); - $new_dir = Config::get(Config::CACHE_DIR) . '/feed-icons'; $dh = opendir($old_dir); -- cgit v1.2.3