summaryrefslogtreecommitdiff
path: root/htdocs/moderate/users/delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/moderate/users/delete.php')
-rw-r--r--htdocs/moderate/users/delete.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/moderate/users/delete.php b/htdocs/moderate/users/delete.php
index 875c0c7..76b8866 100644
--- a/htdocs/moderate/users/delete.php
+++ b/htdocs/moderate/users/delete.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}