login: avoid php notice on missing user
[minimedit.git] / edit.php
index 01d83dfa64f602dcf71ca38f2049f7f188432058..18563365e7d989357bcc9a514ff24cca259d1571 100755 (executable)
--- a/edit.php
+++ b/edit.php
@@ -5,7 +5,7 @@ function abort($status, $body) {
        exit;
 }
 
-if (!$User['admin'])
+if (!@$User['admin'])
        abort('401 unauthorised', "geen beheersrechten");
 
 if (!$_POST)