diff --git a/backend.php b/backend.php index b77575723..ac53977e4 100644 --- a/backend.php +++ b/backend.php @@ -721,13 +721,15 @@ } } - $result = db_query($link, - "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); + if ($feed_id > 0) { + $result = db_query($link, + "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); - if (db_num_rows($result) == 0) { - print "