set_basic_feed_info: bail out if feed doesn't exist

This commit is contained in:
Andrew Dolgov 2015-12-03 16:16:42 +03:00
parent 475d762872
commit d77bd1a5d2
1 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,8 @@
$result = db_query("SELECT feed_url,auth_pass,auth_pass_encrypted $result = db_query("SELECT feed_url,auth_pass,auth_pass_encrypted
FROM ttrss_feeds WHERE id = '$feed'"); 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, $auth_pass_encrypted = sql_bool_to_bool(db_fetch_result($result,
0, "auth_pass_encrypted")); 0, "auth_pass_encrypted"));