aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/isadmin.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/isadmin.inc.php')
-rw-r--r--admin/include/isadmin.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/include/isadmin.inc.php b/admin/include/isadmin.inc.php
index 90398702b..9b71cb900 100644
--- a/admin/include/isadmin.inc.php
+++ b/admin/include/isadmin.inc.php
@@ -27,8 +27,7 @@
include( PHPWG_ROOT_PATH.'admin/include/functions.php' );
-$isadmin = true;
-if ( $user['status'] != 'admin' )
+if ($user['status'] != 'admin')
{
echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
echo '<a href="'.PHPWG_ROOT_PATH.'identification.php">'.$lang['ident_title'].'</a></div>';