Opsync working

This commit is contained in:
Victor Dubiniuk 2013-08-07 19:01:50 +03:00 committed by Tobias Hintze
parent 013bf8eb6e
commit 354f059d92

View File

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