From: fidian Date: Wed, 17 Jan 2001 17:56:32 +0000 (+0000) Subject: parseAddrs now always returns an array (expected behavior) X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c5edd369fee64e51d97aa7d35751edaac083864f;hp=4faa6b178298b2572427295e617b66f6826064c1 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 --- 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);