From 9313ebf2e745731263a8e24d19473adb70dfee47 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Feb 2021 13:25:26 +0300 Subject: [PATCH] fix warning in counters::get_feeds() --- classes/counters.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/classes/counters.php b/classes/counters.php index b4309cf7b..1c75e009e 100644 --- a/classes/counters.php +++ b/classes/counters.php @@ -162,7 +162,6 @@ class Counters { while ($line = $sth->fetch()) { $id = $line["id"]; - $last_error = htmlspecialchars($line["last_error"]); $last_updated = TimeHelper::make_local_datetime($line['last_updated'], false); if (Feeds::_has_icon($id)) { @@ -183,11 +182,8 @@ class Counters { "has_img" => (int) $has_img ]; - if ($last_error) - $cv["error"] = $last_error; - - if ($active_feed && $id == $active_feed) - $cv["title"] = truncate_string($line["title"], 30); + $cv["error"] = $line["last_error"]; + $cv["title"] = truncate_string($line["title"], 30); array_push($ret, $cv);