diff options
| author | Andrew Dolgov <fox@madoka.spb.ru> | 2005-12-22 09:32:18 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.spb.ru> | 2005-12-22 09:32:18 +0100 |
| commit | 5edfe3038d6f2827c40b542015e3aa3f807ee8a5 (patch) | |
| tree | bca1c41f2f8d961b4022d532ef4c9cf2386dd011 | |
| parent | b2804af7e02335047152a60b717cdb095c711bb3 (diff) | |
fix adding feed w/o cat_id (closes #14)
| -rw-r--r-- | backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.php b/backend.php index 07f3ff17a..2b527cc17 100644 --- a/backend.php +++ b/backend.php @@ -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'"; |