CRM-14130 - Undefined property: CRM_Core_DAO...reply.php
authorDonald A. Lobo <lobo@civicrm.org>
Wed, 29 Jan 2014 00:09:49 +0000 (16:09 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Wed, 29 Jan 2014 00:09:49 +0000 (16:09 -0800)
http://issues.civicrm.org/jira/browse/CRM-14130

CRM/Mailing/Event/BAO/Reply.php

index ed7dd634dfd7d2d01e7dd5926f18b663f530f110..3e71c6c484c9867ce05945000423c083da5a7b7f 100644 (file)
@@ -116,7 +116,9 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
 
     $eq = new CRM_Core_DAO();
     $eq->query("SELECT     $contacts.display_name as display_name,
-                               $emails.email as email
+                           $emails.email as email,
+                           $queue.job_id as job_id,
+                           $queue.hash as hash
                    FROM        $queue
                    INNER JOIN  $contacts
                            ON  $queue.contact_id = $contacts.id
@@ -144,7 +146,9 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
       $b = $parsed->generateBody();
 
       // strip Return-Path of possible bounding brackets, CRM-4502
-      $h['Return-Path'] = trim($h['Return-Path'], '<>');
+      if (!empty($h['Return-Path'])) {
+        $h['Return-Path'] = trim($h['Return-Path'], '<>');
+      }
 
       // FIXME: ugly hack - find the first MIME boundary in
       // the body and make the boundary in the header match it