X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Ffunctions.php;h=8d25457c9f8a9f1a08f27e9fe5737e1ef1d8259c;hb=1271407eea5e4d98968b701025630c03d66ce5d1;hp=be8cba41fa5e06d3e2d3771105e7bcad3e20e04b;hpb=fbde19580c1df21051253794d3d5398fb6915333;p=tt-rss.git diff --git a/include/functions.php b/include/functions.php index be8cba41..8d25457c 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]);