]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #5800 cast user guid to an int
authorCash Costello <cash.costello@gmail.com>
Sat, 13 Jul 2013 12:06:54 +0000 (08:06 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 13 Jul 2013 12:06:54 +0000 (08:06 -0400)
engine/lib/sessions.php

index a34c2045b163f8765cee7bb582564090a3af8a3d..fb28e1e9ad71dda073f07c175e9db8977d0c3431 100644 (file)
@@ -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