mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
return value of hook will be passed on even if not a string
This commit is contained in:
parent
2781974f7b
commit
c7ad9433a1
|
@ -81,17 +81,23 @@ class SeedDMS_View_Common {
|
|||
$tmpret = $hookObj->$hook($this);
|
||||
if(is_string($tmpret))
|
||||
$ret .= $tmpret;
|
||||
else
|
||||
$ret = $tmpret;
|
||||
break;
|
||||
case 2:
|
||||
$tmpret = $hookObj->$hook($this, func_get_arg(1));
|
||||
if(is_string($tmpret))
|
||||
$ret .= $tmpret;
|
||||
else
|
||||
$ret = $tmpret;
|
||||
break;
|
||||
case 3:
|
||||
default:
|
||||
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
|
||||
if(is_string($tmpret))
|
||||
$ret .= $tmpret;
|
||||
else
|
||||
$ret = $tmpret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user