aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-07-13 08:06:54 -0400
committerCash Costello <cash.costello@gmail.com>2013-07-13 08:06:54 -0400
commitcf15971dc02b59e2ea36041aaec69bc1b9b21a64 (patch)
tree46dda43c0fb270b3aa011b3759ca8a8000e57ee2 /engine
parent9892692deefdb06d9e7176c72fc5780ab79e3a7d (diff)
downloadelgg-cf15971dc02b59e2ea36041aaec69bc1b9b21a64.tar.gz
elgg-cf15971dc02b59e2ea36041aaec69bc1b9b21a64.tar.bz2
Fixes #5800 cast user guid to an int
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php3
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