diff --git a/ag/gm/include/tournament.inc.php b/ag/gm/include/tournament.inc.php index 9d9ca5f..3c46268 100644 --- a/ag/gm/include/tournament.inc.php +++ b/ag/gm/include/tournament.inc.php @@ -29,6 +29,8 @@ function persistTournamentChanges($request) { if ($key == 'id') { continue; + } else if ($value == "") { + $changes[] = $key.' = NULL'; } else if ($key == 'name' || $key == 'abbrevation' || $key == 'icon' || $key == 'fruit_type') { $changes[] = $key.'=\''.$value.'\''; } else { @@ -61,7 +63,7 @@ function displayTournamentForm($request, $data) {