summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-12-14 12:47:25 +0000
committerwn_ <[email protected]>2021-12-14 12:47:25 +0000
commitddc81b2c8979904bd042efd0412d93fb7c821903 (patch)
tree9dba626cf77f534ca8ca42914352ff9ed0b77e64 /classes/feeds.php
parented74c43f18998d6e3469203dd71109d519fd4f2e (diff)
Add a note on why ed74c43f18 was needed.
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 3c0578782..2a4fe4993 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -1359,6 +1359,7 @@ class Feeds extends Handler_Protected {
$sth->execute([$user_id]);
$row = $sth->fetch();
+ // Handle 'SUM()' returning null if there are no articles/results (e.g. admin user with no feeds)
return $row["count"] ?? 0;
}