Status: New
Owner: ----

New issue 62 by h07r0d: Field Booking Fails with no Game
http://code.google.com/p/leaguerunner/issues/detail?id=62

If a Field Booking doesn't have a game playing on it yet, Field.php will
generate a fatal error.
Field.php starting line 624
if($slot->game_id) {
        ...
}
$rows[] = array($slot->game_date, $slot->game_start,
$game->display_game_end(), $booking, theme_links($actions));

If there is no game_id, there's no $game->display_game_end() to call.
I suggest just adding an else clause to handle the $rows[] creation using
$game if exists, and $slot->game_end if not.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Leaguerunner mailing list
[email protected]
http://www.dmo.ca/cgi-bin/mailman/listinfo/leaguerunner

Reply via email to