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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user