$statement = DBA::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]);
$r = DBA::inArray($statement);
- for($i = 0; $i < count($r); $i++) {
- $r[$i]['parameter'] = stripslashes(implode(': ', explode('","', $r[$i]['parameter'])));
- $r[$i]['parameter'] = substr($r[$i]['parameter'], 2, -2);
- }
+ $r[$i]['parameter'] = implode(json_decode($r[$i]['parameter']), ': ');
$t = get_markup_template('admin/workerqueue.tpl');
return replace_macros($t, [