From: Andrew Dolgov Date: Thu, 3 Dec 2015 13:16:42 +0000 (+0300) Subject: set_basic_feed_info: bail out if feed doesn't exist X-Git-Tag: 16.3~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d77bd1a5d213ed0e1d923e0c12ae16f022e92653;p=tt-rss.git set_basic_feed_info: bail out if feed doesn't exist --- 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"));