aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php3
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;