From 04fb2f6fc8a49498a8de0600e5e9b4172b27b5f0 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 10:09:20 +0000 Subject: Fixes #2490: attributes initialize to NULL instead of empty string or 0. Updated tests to reflect this git-svn-id: http://code.elgg.org/elgg/trunk@7376 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggUser.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'engine/classes/ElggUser.php') diff --git a/engine/classes/ElggUser.php b/engine/classes/ElggUser.php index cb2d565fc..8f30be37e 100644 --- a/engine/classes/ElggUser.php +++ b/engine/classes/ElggUser.php @@ -37,13 +37,13 @@ class ElggUser extends ElggEntity parent::initializeAttributes(); $this->attributes['type'] = "user"; - $this->attributes['name'] = ""; - $this->attributes['username'] = ""; - $this->attributes['password'] = ""; - $this->attributes['salt'] = ""; - $this->attributes['email'] = ""; - $this->attributes['language'] = ""; - $this->attributes['code'] = ""; + $this->attributes['name'] = NULL; + $this->attributes['username'] = NULL; + $this->attributes['password'] = NULL; + $this->attributes['salt'] = NULL; + $this->attributes['email'] = NULL; + $this->attributes['language'] = NULL; + $this->attributes['code'] = NULL; $this->attributes['banned'] = "no"; $this->attributes['admin'] = 'no'; $this->attributes['tables_split'] = 2; -- cgit v1.2.3