From 0f4487d3d69d1ebf21a424d75863f3864c305883 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 10:44:43 +0300 Subject: [PATCH] plugins/af_readability: use PDO --- plugins/af_readability/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } } -- 2.39.2