We are not using objects here.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 24 Apr 2005 13:30:00 +0000 (13:30 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 24 Apr 2005 13:30:00 +0000 (13:30 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9388 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/rfc822address.php

index 4623fb42eef72e3a0e187ac2d153ee106fa12580..2a3e81657c84f354890443ed88136b87c2963553 100644 (file)
@@ -46,8 +46,8 @@ function parseRFC822Address($sAddress,$iLimit = 0) {
         case ';':
             if ($sGroup) {
                 $aAddress[] = _createAddressElement($aStack,$aComment,$sEmail);
-                $oAddr = end($aAddress);
-                if(!$oAddr || ((isset($oAddr)) && !$oAddr->mailbox && !$oAddr->personal)) {
+                $aAddr = end($aAddress);
+                if(!$aAddr || ((isset($aAddr)) && !$aAddr[SQM_ADDR_MAILBOX] && !$aAddr[SQM_ADDR_PERSONAL])) {
                     $sEmail = $sGroup . ':;';
                 }
                 $aAddress[] = _createAddressElement($aStack,$aComment,$sEmail);