mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:05:56 +00:00
fix warning in counters::get_feeds()
This commit is contained in:
@@ -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,11 +182,8 @@ class Counters {
|
|||||||
"has_img" => (int) $has_img
|
"has_img" => (int) $has_img
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($last_error)
|
$cv["error"] = $line["last_error"];
|
||||||
$cv["error"] = $last_error;
|
$cv["title"] = truncate_string($line["title"], 30);
|
||||||
|
|
||||||
if ($active_feed && $id == $active_feed)
|
|
||||||
$cv["title"] = truncate_string($line["title"], 30);
|
|
||||||
|
|
||||||
array_push($ret, $cv);
|
array_push($ret, $cv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user