Commit a9285c23a193ece13673c85e75d554ea2d4dee5a
1 parent
0de794df
Exists in
master
and in
100 other branches
Fix TT merge & intection (#7228)
Showing
1 changed file
with
8 additions
and
6 deletions
Show diff stats
php/classes/TimeTableMgr.php
... | ... | @@ -405,9 +405,10 @@ class TimeTableMgr extends AmdaObjectMgr |
405 | 405 | $objTT->created = null; |
406 | 406 | $objTT->history = $obj->history; |
407 | 407 | for ($iId = 0; $iId < count($start); $iId++) { |
408 | - $inter = new stdClass(); | |
409 | - $inter->start = $start[$iId]; | |
410 | - $inter->stop = $stop[$iId]; | |
408 | + $inter = array( | |
409 | + 'start' => $start[$iId], | |
410 | + 'stop' => $stop[$iId], | |
411 | + ); | |
411 | 412 | $objTT->intervals[] = $inter; |
412 | 413 | } |
413 | 414 | $objTT->nbIntervals = count($start); |
... | ... | @@ -603,9 +604,10 @@ class TimeTableMgr extends AmdaObjectMgr |
603 | 604 | $objTT->created = null; |
604 | 605 | $objTT->history = $obj->history; |
605 | 606 | for ($iId = 0; $iId < count($start); $iId++) { |
606 | - $inter = new stdClass(); | |
607 | - $inter->start = $start[$iId]; | |
608 | - $inter->stop = $stop[$iId]; | |
607 | + $inter = array( | |
608 | + 'start' => $start[$iId], | |
609 | + 'stop' => $stop[$iId], | |
610 | + ); | |
609 | 611 | $objTT->intervals[] = $inter; |
610 | 612 | } |
611 | 613 | $objTT->nbIntervals = count($start); |
... | ... |