get_feed_access_key: param type bullshit

This commit is contained in:
Andrew Dolgov 2017-12-03 00:25:12 +03:00
parent 6cf3a57282
commit ed5cd6eae5

View file

@ -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"];