From: pdontthink Date: Fri, 22 Sep 2006 09:42:04 +0000 (+0000) Subject: Fix broken legacy use of concat_hook_function. Now you can log in again. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8266f7af96f6983e3346ab701bf7b807561e73f3;ds=sidebyside Fix broken legacy use of concat_hook_function. Now you can log in again. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11737 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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; }