]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix adding feed w/o cat_id (closes #14)
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Dec 2005 08:32:18 +0000 (09:32 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Dec 2005 08:32:18 +0000 (09:32 +0100)
backend.php

index 07f3ff17a57c1b78440e75aed50f483837feb248..2b527cc1747790a2f02b5995bc5166f9ba3cdbe4 100644 (file)
                                $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'";