diff options
author | Andrew Dolgov <[email protected]> | 2021-02-24 13:25:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-24 13:25:26 +0300 |
commit | 9313ebf2e745731263a8e24d19473adb70dfee47 (patch) | |
tree | 88fa60bd0d5705292fb2a8ef6c5149174fdd8e5d | |
parent | 8b09e653e0ae242f4c6590accc311da40b690c32 (diff) |
fix warning in counters::get_feeds()
-rw-r--r-- | classes/counters.php | 8 |
1 files 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); |