Browse Source

parseAddrs now always returns an array (expected behavior)

Tyler Akins 24 years ago
parent
commit
293ac43cf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/strings.php

+ 1 - 1
functions/strings.php

@@ -120,7 +120,7 @@
    /* 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);