From d1d2ee6b2f2a46f1c6495bfe9936146a2bfad403 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 21 Jul 2018 23:29:39 +0200 Subject: [PATCH] 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 ;) --- mod/admin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/admin.php b/mod/admin.php index 7e90e44cb7..0576a1b247 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -784,7 +784,9 @@ function admin_page_workerqueue(App $a) $statement = DBA::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]); $r = DBA::inArray($statement); - $r[$i]['parameter'] = implode(json_decode($r[$i]['parameter']), ': '); + for($i = 0; $i < count($r); $i++) { + $r[$i]['parameter'] = implode(json_decode($r[$i]['parameter']), ': '); + } $t = get_markup_template('admin/workerqueue.tpl'); return replace_macros($t, [ -- 2.39.5