Commit 79d4f2a19a64f1acd26747ae0a7a5200fa500c73
1 parent
d68c15bf
Exists in
master
and in
55 other branches
ok 7522
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
... | ... | @@ -63,8 +63,9 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface |
63 | 63 | { |
64 | 64 | case "TimeTable" : |
65 | 65 | if (($ttFileIndex >= 0) && ($ttFileIndex >= count($input->timeTables))) |
66 | - throw new Exception('Try to use a non-existing Time table index in the request.'); | |
67 | - | |
66 | + $ttFileIndex = 0; | |
67 | + if($ttFileIndex < 0) | |
68 | + $ttFileIndex = count($input->timeTables) -1; | |
68 | 69 | $crtIndex = 0; |
69 | 70 | foreach ($input->timeTables as $tt) |
70 | 71 | { | ... | ... |