mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-11 19:11:04 +02:00
getVirtCounters: check if plugin feeds exist
This commit is contained in:
parent
5160620c8a
commit
0196ef94f4
@ -1436,13 +1436,14 @@
|
|||||||
if ($pluginhost) {
|
if ($pluginhost) {
|
||||||
$feeds = $pluginhost->get_feeds(-1);
|
$feeds = $pluginhost->get_feeds(-1);
|
||||||
|
|
||||||
|
if (is_array($feeds)) {
|
||||||
foreach ($feeds as $feed) {
|
foreach ($feeds as $feed) {
|
||||||
$cv = array("id" => PluginHost::pfeed_to_feed_id($feed['id']),
|
$cv = array("id" => PluginHost::pfeed_to_feed_id($feed['id']),
|
||||||
"counter" => $feed['sender']->get_unread($feed['id']));
|
"counter" => $feed['sender']->get_unread($feed['id']));
|
||||||
|
|
||||||
array_push($ret_arr, $cv);
|
array_push($ret_arr, $cv);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret_arr;
|
return $ret_arr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user