parseAddrs now always returns an array (expected behavior)
[squirrelmail.git] / functions / strings.php
index 7027564ad8cd3a82ecc485ff0c1865da50efd319..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);
    }
 
    /* SquirrelMail version number -- DO NOT CHANGE */
-   $version = "1.0pre2 (cvs)";
+   $version = "1.0pre3 [cvs]";
 
 
    function find_mailbox_name ($mailbox) {