From: monishdeb Date: Tue, 9 Jun 2015 14:29:13 +0000 (+0530) Subject: CRM-16609 fix - Strict warning variables should be passed by reference in civicrm... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9372d65688eb62548cdc9dfedf62d2ac7f396308;p=civicrm-core.git 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 --- 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);