Преглед изворни кода

parseAddrs now always returns an array (expected behavior)

Tyler Akins пре 24 година
родитељ
комит
293ac43cf9
1 измењених фајлова са 1 додато и 1 уклоњено
  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);