diff options
| author | cash <cash.costello@gmail.com> | 2011-11-18 21:57:52 -0500 | 
|---|---|---|
| committer | cash <cash.costello@gmail.com> | 2011-11-28 21:44:00 -0500 | 
| commit | 1cfd760ee857011499b999ce282b5c1a98b94dca (patch) | |
| tree | 5ed1db25465d30bc36f049dff5c8e5df216e2165 /engine/classes/ElggUser.php | |
| parent | b12039be030a54fa05dc3758254542075b130f34 (diff) | |
| download | elgg-1cfd760ee857011499b999ce282b5c1a98b94dca.tar.gz elgg-1cfd760ee857011499b999ce282b5c1a98b94dca.tar.bz2  | |
Fixes #4111 guid is now an int
Diffstat (limited to 'engine/classes/ElggUser.php')
| -rw-r--r-- | engine/classes/ElggUser.php | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/classes/ElggUser.php b/engine/classes/ElggUser.php index 75ac008f6..a1c7147a5 100644 --- a/engine/classes/ElggUser.php +++ b/engine/classes/ElggUser.php @@ -114,7 +114,7 @@ class ElggUser extends ElggEntity  		$row = get_user_entity_as_row($guid);  		if (($row) && (!$this->isFullyLoaded())) {  			// If $row isn't a cached copy then increment the counter -			$this->attributes['tables_loaded'] ++; +			$this->attributes['tables_loaded']++;  		}  		// Now put these into the attributes array as core values @@ -123,6 +123,9 @@ class ElggUser extends ElggEntity  			$this->attributes[$key] = $value;  		} +		// guid needs to be an int  http://trac.elgg.org/ticket/4111 +		$this->attributes['guid'] = (int)$this->attributes['guid']; +  		return true;  	}  | 
