check if return value of hook addFolderAttribute is a string

This commit is contained in:
Uwe Steinmann 2020-09-08 13:44:19 +02:00
parent c6d0a1d345
commit c555354f35

View File

@ -118,6 +118,8 @@ $(document).ready( function() {
if($arr) { if($arr) {
$this->formField($arr[0], $arr[1]); $this->formField($arr[0], $arr[1]);
} }
} elseif(is_string($arr)) {
echo $arr;
} else { } else {
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, '')); $this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, ''));
} }