From 66010edf8703f1a86e1f4598f95500a98125ab09 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 29 Oct 2008 23:06:25 +0000 Subject: [PATCH] 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 --- class/mime/Rfc822Header.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ''; } } -- 2.25.1