]> git.wh0rd.org Git - tt-rss.git/commitdiff
get_feed_access_key: param type bullshit
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 21:25:12 +0000 (00:25 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 21:25:12 +0000 (00:25 +0300)
include/functions.php

index f88321ec9844ac490387981595e9483e16439795..7bf5460dbfb025813dcddfce896b463b94e1a6fa 100644 (file)
                $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]);
+               $sth->execute([$feed_id, (int)$is_cat, $owner_uid]);
 
                if ($row = $sth->fetch()) {
                        return $row["access_key"];