summaryrefslogtreecommitdiff
path: root/include/functions.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/functions.php
parent1271407eea5e4d98968b701025630c03d66ce5d1 (diff)
ccache, misc: fixes
feeds: start PDO transition
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 8d25457c9..c28460dff 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -601,7 +601,7 @@
$u_sth = $pdo->prepare("SELECT pref_name
FROM ttrss_user_prefs WHERE owner_uid = :uid AND
- profile = :profile OR (:profile IS NULL AND profile IS NULL)");
+ (profile = :profile OR (:profile IS NULL AND profile IS NULL))");
$u_sth->execute([':uid' => $uid, ':profile' => $profile]);
$active_prefs = array();
@@ -1957,7 +1957,7 @@
$pdo->beginTransaction();
$sth = $pdo->prepare("SELECT id FROM ttrss_feed_categories
- WHERE (:parent IS NULL AND parent_cat IS NULL OR parent_cat = :parent)
+ WHERE (parent_cat = :parent OR (:parent IS NULL AND parent_cat IS NULL))
AND title = :cat AND owner_uid = :uid");
$sth->execute([':parent' => $parent_cat_id, ':title' => $feed_cat, ':uid' => $_SESSION['uid']]);