Pārlūkot izejas kodu

parseAddrs now always returns an array (expected behavior)

Tyler Akins 24 gadi atpakaļ
vecāks
revīzija
293ac43cf9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);