From d77bd1a5d213ed0e1d923e0c12ae16f022e92653 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 3 Dec 2015 16:16:42 +0300 Subject: [PATCH] set_basic_feed_info: bail out if feed doesn't exist --- include/rssfuncs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 669b28e4..37801f55 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -230,6 +230,8 @@ $result = db_query("SELECT feed_url,auth_pass,auth_pass_encrypted FROM ttrss_feeds WHERE id = '$feed'"); + if (pg_num_rows($result == 0)) return false; + $auth_pass_encrypted = sql_bool_to_bool(db_fetch_result($result, 0, "auth_pass_encrypted")); -- 2.39.5