mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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) {
|
||||
$this->formField($arr[0], $arr[1]);
|
||||
}
|
||||
} elseif(is_string($arr)) {
|
||||
echo $arr;
|
||||
} else {
|
||||
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, ''));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user