diff options
author | wn_ <[email protected]> | 2021-12-14 12:06:32 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-12-14 12:06:32 +0000 |
commit | ed74c43f18998d6e3469203dd71109d519fd4f2e (patch) | |
tree | c3a864d6c6afd12947cae73497361f875e54c104 /classes | |
parent | 471f97ca8234f0cc2c818bf954ee1bb16720a37b (diff) |
Handle the admin user not having any entries in 'Feeds::_get_global_unread'.
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/feeds.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index a9afb70f2..3c0578782 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -1359,7 +1359,7 @@ class Feeds extends Handler_Protected { $sth->execute([$user_id]); $row = $sth->fetch(); - return $row["count"]; + return $row["count"] ?? 0; } static function _get_cat_title(int $cat_id): string { |