From ed74c43f18998d6e3469203dd71109d519fd4f2e Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 14 Dec 2021 12:06:32 +0000 Subject: [PATCH] Handle the admin user not having any entries in 'Feeds::_get_global_unread'. --- classes/feeds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {