diff options
author | Andrew Dolgov <[email protected]> | 2017-12-01 18:57:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-01 18:57:34 +0300 |
commit | 1271407eea5e4d98968b701025630c03d66ce5d1 (patch) | |
tree | e7d2080d573c7dc1851b87871f6da9286b7bba12 /include/functions.php | |
parent | fbde19580c1df21051253794d3d5398fb6915333 (diff) |
public: partial conversion to PDO, misc fixes
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index be8cba41f..8d25457c9 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2043,10 +2043,12 @@ if (!$owner_uid) $owner_uid = $_SESSION["uid"]; + $is_cat = bool_to_sql_bool($is_cat); + $pdo = Db::pdo(); - $sth = $dbh->prepare("SELECT access_key FROM ttrss_access_keys - WHERE feed_id = ? AND is_cat = ? + $sth = $pdo->prepare("SELECT access_key FROM ttrss_access_keys + WHERE feed_id = ? AND is_cat = ? AND owner_uid = ?"); $sth->execute([$feed_id, $is_cat, $owner_uid]); |