the way to reproduce issue.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11780
7612ce4b-ef26-0410-bec9-
ea0150e637f0
function concat_hook_function($name,$parm=NULL) {
global $squirrelmail_plugin_hooks, $currentHookName;
$ret = '';
function concat_hook_function($name,$parm=NULL) {
global $squirrelmail_plugin_hooks, $currentHookName;
$ret = '';
$currentHookName = $name;
if (isset($squirrelmail_plugin_hooks[$name])
$currentHookName = $name;
if (isset($squirrelmail_plugin_hooks[$name])
foreach ($squirrelmail_plugin_hooks[$name] as $function) {
/* Add something to set correct gettext domain for plugin. */
if (function_exists($function)) {
foreach ($squirrelmail_plugin_hooks[$name] as $function) {
/* Add something to set correct gettext domain for plugin. */
if (function_exists($function)) {
-// $ret .= $function($parm);
- $ret = sqm_array_merge($ret, $function($parm));
+ $plugin_ret = $function($parm);
+ if (!empty($plugin_ret)) {
+ $ret = sqm_array_merge($ret, $plugin_ret);
+ }