Skip to content

Commit a253037

Browse files
committed
Fix wrong number of rounds issue by using rounds default
1 parent 640d688 commit a253037

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rr.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@
8181
}
8282

8383
$teams = array_map('trim', explode(',', $options['teams'] ?? $options['t']));
84-
$rounds = (int) ($options['rounds'] ?? $options['r'] ?? count($teams));
84+
$rounds = $options['rounds'] ?? $options['r'];
85+
if($rounds != NULL) {
86+
$rounds = (int) $rounds;
87+
}
88+
8589
$shuffle = array_key_exists('s', $options)
8690
|| array_key_exists('shuffle', $options);
8791
$seed = $options['i'] ?? $options['seed'] ?? NULL;

0 commit comments

Comments
 (0)