diff options
| author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-31 00:33:58 +0000 | 
|---|---|---|
| committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-31 00:33:58 +0000 | 
| commit | 7c8bad89d27b18668622db2a36752653d3f3789c (patch) | |
| tree | 2732b6296a84cb086f7551e3bf7c205daef8312d /engine/classes/ElggEntity.php | |
| parent | d428c6179cb91fa6c6a6ca739081dfbf79a418b0 (diff) | |
| download | elgg-7c8bad89d27b18668622db2a36752653d3f3789c.tar.gz elgg-7c8bad89d27b18668622db2a36752653d3f3789c.tar.bz2 | |
Improved initializeAttributes implementations
git-svn-id: http://code.elgg.org/elgg/trunk@7159 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggEntity.php')
| -rw-r--r-- | engine/classes/ElggEntity.php | 5 | 
1 files changed, 0 insertions, 5 deletions
| diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index 86bf0727f..571ef890f 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -86,10 +86,6 @@ abstract class ElggEntity extends ElggData implements  	protected function initializeAttributes() {  		initialise_entity_cache(); -		// Create attributes array if not already created -		if (!is_array($this->attributes)) { -			$this->attributes = array(); -		}  		if (!is_array($this->temp_metadata)) {  			$this->temp_metadata = array();  		} @@ -109,7 +105,6 @@ abstract class ElggEntity extends ElggData implements  		$this->attributes['site_guid'] = 0;  		$this->attributes['access_id'] = ACCESS_PRIVATE; -		$this->attributes['time_created'] = "";  		$this->attributes['time_updated'] = "";  		$this->attributes['last_action'] = '';  		$this->attributes['enabled'] = "yes"; | 
