Commit c64f4403 authored by Mindiell's avatar Mindiell

#83 : Correction sur l'onglet des admins

parent 10e67840
Pipeline #2325 passed with stages
in 1 minute and 56 seconds
......@@ -1541,7 +1541,9 @@ class Admin extends Controller
$f3->reroute('/admin/accounts');
}
$admins = $admins->fetchAll(\PDO::FETCH_ASSOC);
$db = $f3->get('DB');
$stmt = $db->query("SELECT * FROM admins");
$admins = $stmt->fetchAll(\PDO::FETCH_ASSOC);
$f3->set('admins', $admins);
$f3->set('block_content', 'backend/admins.html');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment