check if return value of hook is != null

This commit is contained in:
Uwe Steinmann 2017-06-13 14:41:57 +02:00
parent 7a1c4b495c
commit 7d6fd23c6d

View File

@ -109,12 +109,12 @@ class SeedDMS_View_Common {
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
break;
}
if($tmpret) {
if($tmpret !== null) {
if(is_string($tmpret))
$ret .= $tmpret;
elseif((is_array($tmpret) && $tmpret) || is_object($tmpret))
elseif(is_array($tmpret) || is_object($tmpret)) {
$ret = ($ret === null) ? $tmpret : array_merge($ret, $tmpret);
else
} else
$ret = $tmpret;
}
}