Added a for-loop (#5442)
* Using json_decode instead of reinventing hot water Guys, you could have told me ;) * changed spaces to tabs * Guess I'll need a beer ;)
This commit is contained in:
parent
ddaeb305bc
commit
d1d2ee6b2f
1 changed files with 3 additions and 1 deletions
|
@ -784,7 +784,9 @@ function admin_page_workerqueue(App $a)
|
||||||
$statement = DBA::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]);
|
$statement = DBA::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]);
|
||||||
$r = DBA::inArray($statement);
|
$r = DBA::inArray($statement);
|
||||||
|
|
||||||
|
for($i = 0; $i < count($r); $i++) {
|
||||||
$r[$i]['parameter'] = implode(json_decode($r[$i]['parameter']), ': ');
|
$r[$i]['parameter'] = implode(json_decode($r[$i]['parameter']), ': ');
|
||||||
|
}
|
||||||
|
|
||||||
$t = get_markup_template('admin/workerqueue.tpl');
|
$t = get_markup_template('admin/workerqueue.tpl');
|
||||||
return replace_macros($t, [
|
return replace_macros($t, [
|
||||||
|
|
Loading…
Reference in a new issue