From 62e53698dfe113cd27e8ef8b3a38262cc5ff9f05 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 7 Aug 2018 12:25:55 +0200 Subject: [PATCH] Doing some laundry --- mod/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/admin.php b/mod/admin.php index 153b10506..b2f84d072 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -790,7 +790,6 @@ function admin_page_workerqueue(App $a) { // get jobs from the workerqueue table $entries = DBA::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]); - $r = DBA::toArray($statement); $r = []; while ($entry = DBA::fetch($entries)) { @@ -799,6 +798,7 @@ function admin_page_workerqueue(App $a) $entry['created'] = DateTimeFormat::local($entry['created']); $r[] = $entry; } + DBA::close($entries); $t = get_markup_template('admin/workerqueue.tpl'); return replace_macros($t, [