瀏覽代碼

Fix PHP notice when property doesn't exist (#2863)

pdontthink 3 年之前
父節點
當前提交
9d9bf9b608
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/deliver/Deliver.class.php

+ 1 - 1
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;
         }