Fix a warning in 'classes/counters.php'.

This commit is contained in:
wn_ 2021-11-12 05:04:55 +00:00
parent f0ad5881c0
commit b0eb347839
1 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,10 @@ class Counters {
if (is_array($feeds)) { if (is_array($feeds)) {
foreach ($feeds as $feed) { foreach ($feeds as $feed) {
if (!method_exists($feed['sender'], 'get_unread')) {
continue;
}
$cv = [ $cv = [
"id" => PluginHost::pfeed_to_feed_id($feed['id']), "id" => PluginHost::pfeed_to_feed_id($feed['id']),
"counter" => $feed['sender']->get_unread($feed['id']) "counter" => $feed['sender']->get_unread($feed['id'])