From: Andrew Dolgov Date: Sun, 3 Dec 2017 07:44:43 +0000 (+0300) Subject: plugins/af_readability: use PDO X-Git-Tag: 17.12~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0f4487d3d69d1ebf21a424d75863f3864c305883;p=tt-rss.git plugins/af_readability: use PDO --- diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 873eba1b..10de118f 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -1,6 +1,7 @@ pdo->prepare("SELECT id FROM ttrss_feeds WHERE id = ? AND owner_uid = ?"); + $sth->execute([$feed, $_SESSION['uid']]); - if (db_num_rows($result) != 0) { + if ($row = $sth->fetch()) { array_push($tmp, $feed); } }