aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 15:54:45 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 15:54:45 +0000
commit54f7543b0445c40ee14dc9fbf5694f849a43c50c (patch)
treef62224d1556c9696789ef0bbb4b33b572b078568 /engine/lib/entities.php
parent8a000372bdfed83edf4e62b284433b8c05bc47d5 (diff)
downloadelgg-54f7543b0445c40ee14dc9fbf5694f849a43c50c.tar.gz
elgg-54f7543b0445c40ee14dc9fbf5694f849a43c50c.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Annotations and metadata now imported git-svn-id: https://code.elgg.org/elgg/trunk@393 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 4b9473b7e..ad668591d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -342,6 +342,7 @@
switch ($name)
{
+ case 'owner_guid' : $this->attributes['owner_guid'] = $_SESSION['id']; break;
case 'uuid' : $uuid = $text; break;
default : $this->attributes[$name] = $text;
}
@@ -353,10 +354,10 @@
// See if this entity has already been imported, if so we don't need to create a new element
$entity = get_entity_from_uuid($uuid);
- if ($entity)
+ if ($entity)
$this->attributes['guid'] = $entity->guid;
- else
- $this->attributes['guid'] = false;
+ else
+ $this->attributes['guid'] = false;
// save
$result = $this->save();