1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 13:21:29 +00:00

fix adding feed w/o cat_id (closes #14)

This commit is contained in:
Andrew Dolgov
2005-12-22 09:32:18 +01:00
parent b2804af7e0
commit 5edfe3038d

View File

@@ -1643,7 +1643,7 @@
$feed_link = db_escape_string(trim($_GET["link"]));
$cat_id = db_escape_string($_GET["cid"]);
if ($cat_id == "0") {
if ($cat_id == "0" || !$cat_id) {
$cat_qpart = "NULL";
} else {
$cat_qpart = "'$cat_id'";