1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:55:55 +00:00

use orm for a bunch of short feed/cat queries

This commit is contained in:
Andrew Dolgov
2021-03-01 20:25:53 +03:00
parent 8b1a2406e6
commit 56f658711f
3 changed files with 74 additions and 107 deletions

View File

@@ -1713,9 +1713,9 @@ class RSSUtils {
$filters = array();
$feed_id = (int) $feed_id;
$cat_id = (int)Feeds::_cat_of_feed($feed_id);
$cat_id = Feeds::_cat_of_feed($feed_id);
if ($cat_id == 0)
if (empty($cat_id))
$null_cat_qpart = "cat_id IS NULL OR";
else
$null_cat_qpart = "";