parseAddrs now always returns an array (expected behavior)
[squirrelmail.git] / functions / strings.php
index ed1224e6d43f6642b61049651d49c94ec29d6574..8903155f73f68e98e331b9d8d2b5e1a64b5e3b79 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);