diff --git a/include/simpleplugin/attributes/class_SetAttribute.inc b/include/simpleplugin/attributes/class_SetAttribute.inc index f8be21e6897149e890c0a9e04aa8fa95d18ebcb7..7ecd4f5ca3679c99cf1c489227d1ff481912d0e6 100644 --- a/include/simpleplugin/attributes/class_SetAttribute.inc +++ b/include/simpleplugin/attributes/class_SetAttribute.inc @@ -132,6 +132,9 @@ class SetAttribute extends Attribute if (!empty($error) || ($this->attribute === FALSE)) { return $error; } else { + if (!is_array($this->value)) { + return sprintf(_('The value for multivaluated field "%s" is not an array'), $this->getLabel()); + } foreach ($this->value as $value) { $this->attribute->setValue($value); $error = $this->attribute->check();