From e580247914d2a5ed6fd9da080db12c4f0008dba5 Mon Sep 17 00:00:00 2001 From: Ghislain Loas <ghislo@sandbox.pergame.net> Date: Mon, 8 Feb 2016 15:08:56 +0100 Subject: [PATCH] hotline #38223 : fix php 5.4.45 compatibility in cosmogramme integration --- VERSIONS_HOTLINE/38223 | 1 + library/Class/Cosmogramme/Integration/Chronometre.php | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 VERSIONS_HOTLINE/38223 diff --git a/VERSIONS_HOTLINE/38223 b/VERSIONS_HOTLINE/38223 new file mode 100644 index 00000000000..f80d07a2082 --- /dev/null +++ b/VERSIONS_HOTLINE/38223 @@ -0,0 +1 @@ + - ticket #38223 : Intégration cosmogramme : correction d'une incompatibilité avec la version 5.4.45 de PHP diff --git a/library/Class/Cosmogramme/Integration/Chronometre.php b/library/Class/Cosmogramme/Integration/Chronometre.php index 485131f7085..369a1b4c1a2 100644 --- a/library/Class/Cosmogramme/Integration/Chronometre.php +++ b/library/Class/Cosmogramme/Integration/Chronometre.php @@ -39,10 +39,9 @@ class Class_Cosmogramme_Integration_Chronometre { public function backToLegacyState($main, $on_file, $on_records) { - foreach ([$main => $this->_main, - $on_file => $this->_on_file, - $on_records => $this->_on_records] as $legacy => $internal) - $legacy->timeStart = $internal->getStart(); + $main->timeStart = $this->_main->getStart(); + $on_file->timeStart = $this->_on_file->getStart(); + $on_records->timeStart = $this->_on_records->getStart(); } -- GitLab