]> git.wh0rd.org Git - tt-rss.git/commitdiff
set_basic_feed_info: bail out if feed doesn't exist
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 3 Dec 2015 13:16:42 +0000 (16:16 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 3 Dec 2015 13:16:42 +0000 (16:16 +0300)
include/rssfuncs.php

index 669b28e447bbe24065b08f80babb88953712db1f..37801f553ab4baa2b608225a9a1863873a5d3a57 100644 (file)
                $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"));