fix warning in counters::get_feeds()

This commit is contained in:
Andrew Dolgov 2021-02-24 13:25:26 +03:00
parent 8b09e653e0
commit 9313ebf2e7
1 changed files with 2 additions and 6 deletions

View File

@ -162,7 +162,6 @@ class Counters {
while ($line = $sth->fetch()) { while ($line = $sth->fetch()) {
$id = $line["id"]; $id = $line["id"];
$last_error = htmlspecialchars($line["last_error"]);
$last_updated = TimeHelper::make_local_datetime($line['last_updated'], false); $last_updated = TimeHelper::make_local_datetime($line['last_updated'], false);
if (Feeds::_has_icon($id)) { if (Feeds::_has_icon($id)) {
@ -183,10 +182,7 @@ class Counters {
"has_img" => (int) $has_img "has_img" => (int) $has_img
]; ];
if ($last_error) $cv["error"] = $line["last_error"];
$cv["error"] = $last_error;
if ($active_feed && $id == $active_feed)
$cv["title"] = truncate_string($line["title"], 30); $cv["title"] = truncate_string($line["title"], 30);
array_push($ret, $cv); array_push($ret, $cv);