set_basic_feed_info: bail out if feed doesn't exist
This commit is contained in:
parent
475d762872
commit
d77bd1a5d2
|
@ -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"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue