From 354f059d9228026aa34f1e39a090340561c08573 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Wed, 7 Aug 2013 19:01:50 +0300 Subject: [PATCH] Opsync working --- lib/op.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/op.php b/lib/op.php index 65e0d7f9..f9b18105 100644 --- a/lib/op.php +++ b/lib/op.php @@ -39,10 +39,12 @@ class Op { } public static function getOpsAfterJson($esId, $seq){ - return array_map( - json_decode, - self::getOpsAfter($esId, $seq) + $ops =self::getOpsAfter($esId, $seq); + $ops = array_map( + function($x){return json_decode($x['opspec']);}, + $ops ); + return $ops; } public static function getOpsAfter($esId, $seq){