Encode opspec before pushing to db

pull/1/head
Victor Dubiniuk 11 years ago committed by Tobias Hintze
parent 1f9ef09bc0
commit 9d453c6f23

@ -75,6 +75,7 @@ switch ($command){
// append all ops in $postobject['args']['client_ops'] to the ops-table // append all ops in $postobject['args']['client_ops'] to the ops-table
if ($seqHead>$currentHead){ if ($seqHead>$currentHead){
foreach ($ops as $op){ foreach ($ops as $op){
$op['opspec'] = json_encode($op['opspec']);
OCA\Office\Op::add($op); OCA\Office\Op::add($op);
} }
} else { } else {

Loading…
Cancel
Save