aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/objects.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index d2f90bdfd..530c211bd 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -30,8 +30,7 @@
protected function initialise_attributes()
{
parent::initialise_attributes();
-
- $this->attributes['container_guid'] = $_SESSION['id'];
+
$this->attributes['type'] = "object";
$this->attributes['title'] = "";
$this->attributes['description'] = "";
@@ -61,7 +60,7 @@
// Is $guid is an ElggObject? Use a copy constructor
else if ($guid instanceof ElggObject)
{
- foreach ($guid->attributes as $key => $value)
+ foreach ($guid->attributes as $key => $value)
$this->attributes[$key] = $value;
}