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){