fix warning in counters::get_feeds()
This commit is contained in:
parent
8b09e653e0
commit
9313ebf2e7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue