aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-21 17:55:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-21 17:55:42 +0000
commit5c8613af8c97453209eab4189d46c01f86168741 (patch)
tree9c09e4a68288f246d23de927eecd4ff03622f066 /engine/lib
parent009d3a5df1f35717a52d17b3b39ccdcd892bb94e (diff)
downloadelgg-5c8613af8c97453209eab4189d46c01f86168741.tar.gz
elgg-5c8613af8c97453209eab4189d46c01f86168741.tar.bz2
Minor fix for setting metadata
git-svn-id: https://code.elgg.org/elgg/trunk@675 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 34b73b580..2d50fe946 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -115,7 +115,7 @@
$this->attributes[$name] = $value;
}
- else if (isset($this->guid)) {
+ else if ((int) $this->guid > 0) {
return $this->setMetaData($name, $value);
} else {
$this->temp_metadata[$name] = $value;