From 8fd7e474d45701e7d92a050278eecacb93cd7d9e Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 7 Jun 2011 16:24:19 -0700 Subject: Fixed a bug in the admin only pages --- htdocs/moderate/users/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htdocs/moderate/users/index.php') diff --git a/htdocs/moderate/users/index.php b/htdocs/moderate/users/index.php index c4aee54..3e85d5e 100644 --- a/htdocs/moderate/users/index.php +++ b/htdocs/moderate/users/index.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; } -- cgit v1.2.3