diff --git a/VERSIONS_HOTLINE/38223 b/VERSIONS_HOTLINE/38223 new file mode 100644 index 0000000000000000000000000000000000000000..f80d07a208258f4b2d238d4f9797c95ef05a30e3 --- /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 485131f7085fcaef99ca93bb963131314d7ecdb1..369a1b4c1a20ea0dbd779c8cb43b3325a0c86c04 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(); }