mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
check if return value of hook addFolderAttribute is a string
This commit is contained in:
parent
c6d0a1d345
commit
c555354f35
|
@ -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, ''));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user