From c5edd369fee64e51d97aa7d35751edaac083864f Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 17 Jan 2001 17:56:32 +0000 Subject: [PATCH] parseAddrs now always returns an array (expected behavior) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@958 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/strings.php b/functions/strings.php index ed1224e6..8903155f 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -120,7 +120,7 @@ /* Be cautious of "user@host.com" */ function parseAddrs($text) { if (trim($text) == "") - return; + return array(); $text = str_replace(" ", "", $text); $text = ereg_replace('"[^"]*"', "", $text); $text = ereg_replace("\([^\)]*\)", "", $text); -- 2.25.1