From 8266f7af96f6983e3346ab701bf7b807561e73f3 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 22 Sep 2006 09:42:04 +0000 Subject: [PATCH] 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 --- functions/plugin.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.25.1