Fix broken legacy use of concat_hook_function. Now you can log in again.
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2006 09:42:04 +0000 (09:42 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2006 09:42:04 +0000 (09:42 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11737 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/plugin.php

index 062021c9cced356c53a89f6c77bd7f33917f68bb..a891ac93f53295e83f248f7f46bddc2568fe9206 100644 (file)
@@ -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.  */
 
     /* 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;
 }
 
     return $ret;
 }