parseAddrs now always returns an array (expected behavior)
[squirrelmail.git] / 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);