CRM-16609 fix - Strict warning variables should be passed by reference in civicrm...
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 9 Jun 2015 14:29:13 +0000 (19:59 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 9 Jun 2015 14:29:13 +0000 (19:59 +0530)
https://issues.civicrm.org/jira/browse/CRM-16609

CRM/Mailing/MailStore.php

index 47eff358b7911717618f940e6d801423e23771d5..a8c2a8fa97550a923f9cf2c13167f28e2c35ab1a 100644 (file)
@@ -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);