$rounds = array(); } for ($round = 1; $round < $nbrRounds; $round++) { if (!isset($rounds[$round])) { $rounds[$round] = array(); } if (!isset($_POST['round_title_' . $round])) { $_POST['round_title_' . $round] = EB_EVENTM_L144 . ' ' . $round; } if (!isset($_POST['round_bestof_' . $round])) { $_POST['round_bestof_' . $round] = 1; } $rounds[$round]['Title'] = $tp->toDB($_POST['round_title_' . $round]); $rounds[$round]['BestOf'] = $tp->toDB($_POST['round_bestof_' . $round]); } $event->updateRounds($rounds); // Need to update the event in database $event->updateDB(); header("Location: eventmanage.php?eventid={$event_id}"); exit; } if (isset($_POST['eventstatssave'])) { //echo "-- eventstatssave --<br />"; $cat_index = 0; /* Event Min games to rank */ if ($event->getField('Type') != "Clan Ladder") { $new_eventGamesToRank = htmlspecialchars($_POST['sliderValue' . $cat_index]); if (is_numeric($new_eventGamesToRank)) { $event->setFieldDB('nbr_games_to_rank', $new_eventGamesToRank); } $cat_index++;