Commit c64f4403 authored by Mindiell's avatar Mindiell

#83 : Correction sur l'onglet des admins

parent 10e67840
...@@ -1541,7 +1541,9 @@ class Admin extends Controller ...@@ -1541,7 +1541,9 @@ class Admin extends Controller
$f3->reroute('/admin/accounts'); $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('admins', $admins);
$f3->set('block_content', 'backend/admins.html'); $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