summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-12-14 12:06:32 +0000
committerwn_ <[email protected]>2021-12-14 12:06:32 +0000
commited74c43f18998d6e3469203dd71109d519fd4f2e (patch)
treec3a864d6c6afd12947cae73497361f875e54c104 /classes/feeds.php
parent471f97ca8234f0cc2c818bf954ee1bb16720a37b (diff)
Handle the admin user not having any entries in 'Feeds::_get_global_unread'.
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php2
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 {