Commit 6fa059137bf91c19bf52d66de397149991a8712a

Authored by Benjamin Renard
1 parent dde4b598

Fix bug #11422

src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
... ... @@ -67,13 +67,18 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface
67 67 $requestNodes = $this->paramsData->getRequestNodes();
68 68 $timesNode = $requestNodes[$requestIndex]->getTimesNode();
69 69  
  70 +
  71 +
70 72 switch ($input->timesrc)
71 73 {
72 74 case "TimeTable" :
73   - if (($ttFileIndex >= 0) && ($ttFileIndex >= count($input->timeTables)))
74   - $ttFileIndex = 0;
75   - if($ttFileIndex < 0)
76   - $ttFileIndex = count($input->timeTables) -1;
  75 + if ($ttIntIndex >= 0) {
  76 + if (($ttFileIndex >= 0) && ($ttFileIndex >= count($input->timeTables)))
  77 + $ttFileIndex = 0;
  78 + if($ttFileIndex < 0)
  79 + $ttFileIndex = count($input->timeTables) -1;
  80 + }
  81 +
77 82 $crtIndex = 0;
78 83 foreach ($input->timeTables as $tt)
79 84 {
... ...