X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fplugin.php;h=a891ac93f53295e83f248f7f46bddc2568fe9206;hb=ab1581f28c7ee1165dfcfccdb2e2e23240d137f5;hp=062021c9cced356c53a89f6c77bd7f33917f68bb;hpb=918fcc1d131a60df5ba01212d61d82d753014468;p=squirrelmail.git diff --git a/functions/plugin.php b/functions/plugin.php index 062021c9..a891ac93 100644 --- a/functions/plugin.php +++ b/functions/plugin.php @@ -127,6 +127,10 @@ function concat_hook_function($name,$parm=NULL) { /* Variable-length argument lists have a slight problem when */ /* passing values by reference. Pity. This is a workaround. */ + // FIXME: empty return array breaks legacy use of this hook, so + // as a workaround, return empty string (let's fix the + // hook calls so we can pull this out) + if (empty($ret)) return ''; return $ret; }