diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-07-13 08:06:54 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-07-13 08:06:54 -0400 |
commit | cf15971dc02b59e2ea36041aaec69bc1b9b21a64 (patch) | |
tree | 46dda43c0fb270b3aa011b3759ca8a8000e57ee2 /engine/lib/sessions.php | |
parent | 9892692deefdb06d9e7176c72fc5780ab79e3a7d (diff) | |
download | elgg-cf15971dc02b59e2ea36041aaec69bc1b9b21a64.tar.gz elgg-cf15971dc02b59e2ea36041aaec69bc1b9b21a64.tar.bz2 |
Fixes #5800 cast user guid to an int
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r-- | engine/lib/sessions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index a34c2045b..fb28e1e9a 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -87,6 +87,9 @@ function elgg_is_admin_logged_in() { */ function elgg_is_admin_user($user_guid) { global $CONFIG; + + $user_guid = (int)$user_guid; + // cannot use magic metadata here because of recursion // must support the old way of getting admin from metadata |