From 7c8bad89d27b18668622db2a36752653d3f3789c Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sun, 31 Oct 2010 00:33:58 +0000 Subject: Improved initializeAttributes implementations git-svn-id: http://code.elgg.org/elgg/trunk@7159 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggEntity.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'engine/classes/ElggEntity.php') 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"; -- cgit v1.2.3