From 9372d65688eb62548cdc9dfedf62d2ac7f396308 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 9 Jun 2015 19:59:13 +0530 Subject: [PATCH] CRM-16609 fix - Strict warning variables should be passed by reference in civicrm/CRM/Mailing/MailStore.php https://issues.civicrm.org/jira/browse/CRM-16609 --- CRM/Mailing/MailStore.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Mailing/MailStore.php b/CRM/Mailing/MailStore.php index 47eff358b7..a8c2a8fa97 100644 --- a/CRM/Mailing/MailStore.php +++ b/CRM/Mailing/MailStore.php @@ -109,11 +109,10 @@ class CRM_Mailing_MailStore { * array of ezcMail objects */ public function fetchNext($count = 1) { + $offset = 1; if (isset($this->_transport->options->uidReferencing) and $this->_transport->options->uidReferencing) { - $offset = array_shift($this->_transport->listUniqueIdentifiers()); - } - else { - $offset = 1; + $offset = $this->_transport->listUniqueIdentifiers(); + $offset = array_shift($offset); } try { $set = $this->_transport->fetchFromOffset($offset, $count); -- 2.25.1