From 9feb3cb9548ba4e0a783f153614baad0d99e0f87 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 22 May 2022 18:03:08 +0000 Subject: [PATCH] Fix PHP notice when property doesn't exist (#2863) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14952 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/deliver/Deliver.class.php b/class/deliver/Deliver.class.php index 403b88f3..258360e8 100644 --- a/class/deliver/Deliver.class.php +++ b/class/deliver/Deliver.class.php @@ -741,7 +741,7 @@ class Deliver { /* RFC 2298 */ $header[] = 'Disposition-Notification-To: '.$dnt. $rn; } - if ($rfc822_header->dsn) { + if (isset($rfc822_header->dsn) && $rfc822_header->dsn) { $dsn = $rfc822_header->getAddr_s('dsn'); $header[] = 'Return-Receipt-To: '.$dsn. $rn; } -- 2.25.1