From e34af001e8e9a63d59d5b1667f1c0e85f90121aa Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 24 May 2018 07:35:48 +1000 Subject: [PATCH] Dev/Core#117 Fix use of each() function in Recur Report --- CRM/Report/Form/Contribute/Recur.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Form/Contribute/Recur.php b/CRM/Report/Form/Contribute/Recur.php index a5bd2f0f14..26ad5af90c 100644 --- a/CRM/Report/Form/Contribute/Recur.php +++ b/CRM/Report/Form/Contribute/Recur.php @@ -293,7 +293,7 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form { // installments * intervals using the mysql date_add function, along // with the interval unit (e.g. DATE_ADD(start_date, INTERVAL 12 * 1 MONTH) $date_suffixes = array('relative', 'from', 'to'); - while (list(, $suffix) = each($date_suffixes)) { + foreach ($date_suffixes as $suffix) { $isBreak = FALSE; // Check to see if the user wants to search by calculated date. if (!empty($this->_params['calculated_end_date_' . $suffix])) { -- 2.25.1