diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-14 13:11:04 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-14 13:11:04 +0000 |
commit | d7fc2feb27caa7c35100ac62faf6076004370d84 (patch) | |
tree | 1eb61162f4a928ab87bd064a757db2a3d04f13b3 | |
parent | 72f2eda02e39b4a49c5683f66b86b19bed9196a5 (diff) | |
download | elgg-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.php | 10 |
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;
}
}
|