From 49b2401e0d897255bb1b4dbe0f1486842572da37 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Nov 2012 15:48:47 +0400 Subject: [PATCH] savefeedorder: properly process Uncategorized --- classes/pref/feeds.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"]); -- 2.39.5