diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/sessions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 3e682976c..e3988955b 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -324,6 +324,12 @@ // Update statistics set_last_login($_SESSION['guid']); reset_login_failure_count($user->guid); // Reset any previous failed login attempts + + // Set admin shortcut flag if this is an admin + if (isadminloggedin()) { + global $is_admin; + $is_admin = true; + } return true;
|