From d7fc2feb27caa7c35100ac62faf6076004370d84 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 14 Nov 2008 13:11:04 +0000 Subject: Minor tidying of code git-svn-id: https://code.elgg.org/elgg/trunk@2447 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/admin.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 87a401941..287a62952 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -54,13 +54,9 @@ // Register some actions register_action('admin/site/update_basic', false, "", true); // Register basic site admin action - if (isloggedin()) { - if ($_SESSION['user'] instanceof ElggUser) { - if ($_SESSION['user']->admin) { - global $is_admin; - $is_admin = true; - } - } + if (isadminloggedin()) { + global $is_admin; + $is_admin = true; } } -- cgit v1.2.3