Handle the admin user not having any entries in 'Feeds::_get_global_unread'.

This commit is contained in:
wn_ 2021-12-14 12:06:32 +00:00
parent 471f97ca82
commit ed74c43f18
1 changed files with 1 additions and 1 deletions

View File

@ -1359,7 +1359,7 @@ class Feeds extends Handler_Protected {
$sth->execute([$user_id]); $sth->execute([$user_id]);
$row = $sth->fetch(); $row = $sth->fetch();
return $row["count"]; return $row["count"] ?? 0;
} }
static function _get_cat_title(int $cat_id): string { static function _get_cat_title(int $cat_id): string {