From ddc81b2c8979904bd042efd0412d93fb7c821903 Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 14 Dec 2021 12:47:25 +0000 Subject: [PATCH] Add a note on why ed74c43f18 was needed. --- classes/feeds.php | 1 + 1 file changed, 1 insertion(+) 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; }