From a26f57e63aff090dfa8dfe682bd2249786dcf7c3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Aug 2012 19:37:31 +0400 Subject: [PATCH] fix savefeedorder for dojo 1.7 (wtf) --- classes/pref_feeds.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index 5e1ac1a3..d292319c 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -342,6 +342,8 @@ class Pref_Feeds extends Protected_Handler { #file_put_contents("/tmp/saveorder.json", $_POST['payload']); #$data = json_decode(file_get_contents("/tmp/saveorder.json"), true); + $data['items'] = json_decode($data['items'], true); + if (is_array($data) && is_array($data['items'])) { $cat_order_id = 0; -- 2.39.5