aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggEntity.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index a21e9a057..7532bd9dd 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -46,20 +46,19 @@ abstract class ElggEntity extends ElggData implements
* Holds metadata until entity is saved. Once the entity is saved,
* metadata are written immediately to the database.
*/
- protected $temp_metadata;
+ protected $temp_metadata = array();
/**
* Holds annotations until entity is saved. Once the entity is saved,
* annotations are written immediately to the database.
*/
- protected $temp_annotations;
-
+ protected $temp_annotations = array();
/**
* Volatile data structure for this object, allows for storage of data
* in-memory that isn't sync'd back to the metadata table.
*/
- protected $volatile;
+ protected $volatile = array();
/**
* Initialise the attributes array.
@@ -87,16 +86,6 @@ abstract class ElggEntity extends ElggData implements
initialise_entity_cache();
- if (!is_array($this->temp_metadata)) {
- $this->temp_metadata = array();
- }
- if (!is_array($this->temp_annotations)) {
- $this->temp_annotations = array();
- }
- if (!is_array($this->volatile)) {
- $this->volatile = array();
- }
-
$this->attributes['guid'] = "";
$this->attributes['type'] = "";
$this->attributes['subtype'] = "";