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 ed1224e6d43f6642b61049651d49c94ec29d6574..8903155f73f68e98e331b9d8d2b5e1a64b5e3b79 100644 (file)
    /* Be cautious of "user@host.com" */
    function parseAddrs($text) {
       if (trim($text) == "")
    /* 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);
       $text = str_replace(" ", "", $text);
       $text = ereg_replace('"[^"]*"', "", $text);
       $text = ereg_replace("\([^\)]*\)", "", $text);