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
1 changed files with 2 additions and 1 deletions

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";