Commit 79d4f2a19a64f1acd26747ae0a7a5200fa500c73

Authored by Hacene SI HADJ MOHAND
1 parent d68c15bf

ok 7522

src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
@@ -63,8 +63,9 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface @@ -63,8 +63,9 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface
63 { 63 {
64 case "TimeTable" : 64 case "TimeTable" :
65 if (($ttFileIndex >= 0) && ($ttFileIndex >= count($input->timeTables))) 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 $crtIndex = 0; 69 $crtIndex = 0;
69 foreach ($input->timeTables as $tt) 70 foreach ($input->timeTables as $tt)
70 { 71 {