]> git.mxchange.org Git - friendica.git/commitdiff
Doing some laundry
authorUnknown <me@jeroened.be>
Tue, 7 Aug 2018 10:25:55 +0000 (12:25 +0200)
committerUnknown <me@jeroened.be>
Tue, 7 Aug 2018 10:25:55 +0000 (12:25 +0200)
mod/admin.php

index 153b105063950614f7fbf9161081d5bb86268639..b2f84d07293249be52d48269d521690fc2f01ba8 100644 (file)
@@ -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, [