parseAddrs now always returns an array (expected behavior)
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 17 Jan 2001 17:56:32 +0000 (17:56 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 17 Jan 2001 17:56:32 +0000 (17:56 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@958 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index ed1224e..8903155 100644 (file)
    /* 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);