From: Andrew Dolgov Date: Tue, 6 Nov 2012 11:48:47 +0000 (+0400) Subject: savefeedorder: properly process Uncategorized X-Git-Tag: 1.6.1~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=49b2401e0d897255bb1b4dbe0f1486842572da37;p=tt-rss.git savefeedorder: properly process Uncategorized --- diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 8cfa5336..4de3576c 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -327,8 +327,11 @@ class Pref_Feeds extends Handler_Protected { $cat_id = ($item_id != "root") ? db_escape_string($bare_item_id) : "NULL"; + $cat_qpart = ($cat_id != 0) ? "cat_id = '$cat_id'" : + "cat_id = NULL"; + db_query($this->link, "UPDATE ttrss_feeds - SET order_id = $order_id, cat_id = '$cat_id' + SET order_id = $order_id, $cat_qpart WHERE id = '$bare_id' AND owner_uid = " . $_SESSION["uid"]);