From: Cash Costello Date: Sat, 13 Jul 2013 12:06:54 +0000 (-0400) Subject: Fixes #5800 cast user guid to an int X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cf15971dc02b59e2ea36041aaec69bc1b9b21a64;p=lorea%2Felgg.git Fixes #5800 cast user guid to an int --- 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