diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-18 11:29:16 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-18 11:29:16 +0000 |
commit | 63a3b460c4607ddb29daa34c4baf4aa62c2c1a45 (patch) | |
tree | e17b1607b66807a21479939d4b535e3d5202b663 /engine/lib/entities.php | |
parent | c5c299f91dc9307b2fd9a232981e49dd74ed611b (diff) | |
download | elgg-63a3b460c4607ddb29daa34c4baf4aa62c2c1a45.tar.gz elgg-63a3b460c4607ddb29daa34c4baf4aa62c2c1a45.tar.bz2 |
If you feed an entity a metadata array, it assumes multiple values are allowed
git-svn-id: https://code.elgg.org/elgg/trunk@492 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index da32d134e..bbb0f36af 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -143,7 +143,8 @@ public function setMetaData($name, $value, $value_type = "", $multiple = false) { if (is_array($value)) - { + {
+ $multiple = true; foreach ($value as $v) if (!create_metadata($this->getGUID(), $name, $v, $value_type, $this->getOwner(), $this->getAccessID(), $multiple)) return false; |