Correct value of undefined hostname
[squirrelmail.git] / class / mime / Rfc822Header.class.php
index b36c48e5c7f19e22aaddc2ccbaffdbe717a383a8..1c7bd897032ede5ab11d3f474578cc06d0ebb781 100644 (file)
@@ -609,7 +609,7 @@ class Rfc822Header {
                          $iPosAt = strpos($aAddr['email'], '@');
                          if ($iPosAt === FALSE) {
                              $oAddr->mailbox = $aAddr['email'];
-                             $oAddr->host = '';
+                             $oAddr->host = FALSE;
                          } else {
                              $oAddr->mailbox = substr($aAddr['email'], 0, $iPosAt);
                              $oAddr->host = substr($aAddr['email'], $iPosAt+1);
@@ -861,7 +861,7 @@ class Rfc822Header {
      * @param boolean $encoded (since 1.4.0) return encoded or plain text addresses
      * @return string
      */
-    function getAddr_s($arr, $separator = ',',$encoded=false) {
+    function getAddr_s($arr, $separator = ', ', $encoded=false) {
         $s = '';
 
         if (is_array($arr)) {