Skip to content

Commit 2164f57

Browse files
Fixed autogenerated tournament round suffix
1 parent b30f696 commit 2164f57

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/engine/BMInterfaceTournament.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,10 @@ protected function generate_new_games(BMTournament $tournament) {
506506
$roundDescription = 'Tournament Round ' . $gameData['roundNumber'];
507507
$tournDescription = $tournament->description;
508508

509-
if ('' != $tournDescription) {
510-
$tournDescription = $tournDescription . ', ' . $roundDescription;
509+
if ('' == trim($tournDescription)) {
510+
$tournDescription = $roundDescription;
511+
} else {
512+
$tournDescription = $tournDescription . '' . $roundDescription;
511513
}
512514

513515
$interfaceResponse = $this->game()->create_game_from_button_ids(

0 commit comments

Comments
 (0)