1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

ccache, misc: fixes

feeds: start PDO transition
This commit is contained in:
Andrew Dolgov
2017-12-01 19:42:02 +03:00
parent 1271407eea
commit cc9450c309
5 changed files with 125 additions and 89 deletions

View File

@@ -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']]);