From: Andrew Dolgov Date: Tue, 14 Aug 2012 15:37:31 +0000 (+0400) Subject: fix savefeedorder for dojo 1.7 (wtf) X-Git-Tag: 1.6.0~161 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a26f57e63aff090dfa8dfe682bd2249786dcf7c3;p=tt-rss.git fix savefeedorder for dojo 1.7 (wtf) --- 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;