aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 13:11:04 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 13:11:04 +0000
commitd7fc2feb27caa7c35100ac62faf6076004370d84 (patch)
tree1eb61162f4a928ab87bd064a757db2a3d04f13b3
parent72f2eda02e39b4a49c5683f66b86b19bed9196a5 (diff)
downloadelgg-d7fc2feb27caa7c35100ac62faf6076004370d84.tar.gz
elgg-d7fc2feb27caa7c35100ac62faf6076004370d84.tar.bz2
Minor tidying of code
git-svn-id: https://code.elgg.org/elgg/trunk@2447 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/admin.php10
1 files changed, 3 insertions, 7 deletions
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;
}
}