From: pdontthink Date: Wed, 29 Oct 2008 23:06:25 +0000 (+0000) Subject: Empty header values cause PHP notice - fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=66010edf8703f1a86e1f4598f95500a98125ab09;p=squirrelmail.git Empty header values cause PHP notice - fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13312 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index 681ab4fd..2d44a4b7 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -642,7 +642,10 @@ class Rfc822Header { if ($ar) { return $aProcessedAddress; } else { - return $aProcessedAddress[0]; + if (isset($aProcessedAddress[0])) + return $aProcessedAddress[0]; + else + return ''; } }