diff --git a/bin/efa b/bin/efa index 6c47f64b92b7e492ef1075e7b154131a8d702338..57d2f297bec170b134d2e8a6f76d583cfe33b74e 100755 --- a/bin/efa +++ b/bin/efa @@ -103,7 +103,7 @@ for ($offer = 0; exists($raw->[$offer]); $offer++) { # If the first field is not a time we've got some additional information. # Sadly, this script does not parse it yet, so it's ignored until ($raw->[$offer]->[$offset] =~ /^\d+:\d+$/) { - splice(@{$raw->[$offer]}, $offset, 1) or last; + last unless exists($raw->[$offer]->[++$offset]); } $cons->[$offer]->[$i] = { deptime => $raw->[$offer]->[$offset],