Commit 6fa059137bf91c19bf52d66de397149991a8712a
1 parent
dde4b598
Exists in
master
and in
10 other branches
Fix bug #11422
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
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 | { | ... | ... |