From: Andrew Dolgov Date: Sat, 2 Dec 2017 21:25:12 +0000 (+0300) Subject: get_feed_access_key: param type bullshit X-Git-Tag: 17.12~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ed5cd6eae58dabfb8fb3c6bd846670f064c2383e;p=tt-rss.git get_feed_access_key: param type bullshit --- diff --git a/include/functions.php b/include/functions.php index f88321ec..7bf5460d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2051,7 +2051,7 @@ $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"];