auth: store global user metadata in User object
[minimedit.git] / login / index.php
index c7d705df7c2c69a337a001383591dc12877df3ab..9ebc4cb846159ef04c715e922f9f46d90ef84ec2 100644 (file)
@@ -61,7 +61,7 @@ if (isset($_REQUEST['goto'])) {
        exit;
 }
 
-if (empty($Args) and !empty($User['admin'])) {
+if (empty($Args) and $User and $User->admin) {
        include_once 'login/admin.html';
 }