X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/5621952f6878f1f5d2f3e368c047ad88b8f88588..6ce5695197ca6b3137a44d775baff00aaa6e0673:/edit.php diff --git a/edit.php b/edit.php index 9ba0d04..4e51097 100644 --- a/edit.php +++ b/edit.php @@ -7,7 +7,7 @@ function abort($body, $status = NULL) { exit; } -if (!@$User['admin']) +if (empty($User['admin'])) abort("geen beheersrechten", '401 unauthorised'); if ($_FILES) {