summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-01 19:42:02 +0300
committerAndrew Dolgov <[email protected]>2017-12-01 19:42:02 +0300
commitcc9450c309dbeedadaf23a8140520ab3726e3206 (patch)
tree0eab31a0472673505f42a6ccca8d78a0bb24f543 /include/controls.php
parent1271407eea5e4d98968b701025630c03d66ce5d1 (diff)
ccache, misc: fixes
feeds: start PDO transition
Diffstat (limited to 'include/controls.php')
-rw-r--r--include/controls.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/controls.php b/include/controls.php
index 278725463..931ccdd52 100644
--- a/include/controls.php
+++ b/include/controls.php
@@ -95,7 +95,7 @@ function print_feed_multi_select($id, $default_ids = [],
c2.parent_cat = ttrss_feed_categories.id) AS num_children
FROM ttrss_feed_categories
WHERE owner_uid = :uid AND
- (parent_cat = :root_id OR :root_id IS NULL AND parent_cat IS NULL) ORDER BY title");
+ (parent_cat = :root_id OR (:root_id IS NULL AND parent_cat IS NULL)) ORDER BY title");
$sth->execute([":uid" => $_SESSION['uid'], ":root_id" => $root_id]);
@@ -189,7 +189,7 @@ function print_feed_cat_select($id, $default_id,
c2.parent_cat = ttrss_feed_categories.id) AS num_children
FROM ttrss_feed_categories
WHERE owner_uid = :uid AND
- (parent_cat = :root_id OR :root_id IS NULL AND parent_cat IS NULL) ORDER BY title");
+ (parent_cat = :root_id OR (:root_id IS NULL AND parent_cat IS NULL)) ORDER BY title");
$sth->execute([":uid" => $_SESSION['uid'], ":root_id" => $root_id]);
$found = 0;
@@ -338,5 +338,4 @@ function print_label_select($name, $value, $attributes = "") {
print "</select>";
-}
-
+} \ No newline at end of file