From c7ad9433a1bac85460f19e94f52d87b9f2a9064c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 27 Apr 2015 08:26:51 +0200 Subject: [PATCH] return value of hook will be passed on even if not a string --- inc/inc.ClassViewCommon.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/inc.ClassViewCommon.php b/inc/inc.ClassViewCommon.php index dd46b6043..199bc8f94 100644 --- a/inc/inc.ClassViewCommon.php +++ b/inc/inc.ClassViewCommon.php @@ -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; } } }