diff --git a/table.php b/table.php index 29ac9d4..90cf90e 100644 --- a/table.php +++ b/table.php @@ -1,6 +1,6 @@ splits); $i++) { + { for ($i = 0; $i < count($this->splits); $i++) { + if (!is_object($this->splits[$i])) { return $i-1; } - } - return count($this->splits)-1; + } + return count($this->splits)-1; } } @@ -217,7 +216,7 @@ else { $kadaver_table = "
# | -Navn | +Navn | 1. matpost | 2. matpost | Mål | @@ -230,10 +229,12 @@ else {Mål | $tid_1_mat | $tid_2_mat | "; - } + } + else { + $mini_num++; + } $tid_maal = ""; if ($runner->splits[2] != false) { $tid_maal = $GLOBALS['start_time']->diff($runner->splits[2])->format('%H:%I:%S'); } if ($runner->course == "Kadaverløpet") { - $kadaver_table .= "
---|---|---|---|---|---|---|
". $i+1 .". | $runner->name | $matposter$tid_maal | ||||
". $kadaver_num .". | $runner->name | $matposter$tid_maal | ||||
". $i+1 .". | $runner->name | $tid_maal | ||||
". "" .". | $runner->name | $tid_maal |