1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-11 08:05:56 +00:00

Handle another potential 'SUM()' null situation in Feeds.

This commit is contained in:
wn_
2021-12-14 12:50:53 +00:00
parent ddc81b2c89
commit 0726a9d820

View File

@@ -955,7 +955,8 @@ class Feeds extends Handler_Protected {
$sth->execute([$owner_uid, $feed]);
$row = $sth->fetch();
return $row["count"];
// Handle 'SUM()' returning null if there are no results
return $row["count"] ?? 0;
} else if ($n_feed == -1) {
$match_part = "marked = true";