We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640d688 commit a253037Copy full SHA for a253037
rr.php
@@ -81,7 +81,11 @@
81
}
82
83
$teams = array_map('trim', explode(',', $options['teams'] ?? $options['t']));
84
-$rounds = (int) ($options['rounds'] ?? $options['r'] ?? count($teams));
+$rounds = $options['rounds'] ?? $options['r'];
85
+if($rounds != NULL) {
86
+ $rounds = (int) $rounds;
87
+}
88
+
89
$shuffle = array_key_exists('s', $options)
90
|| array_key_exists('shuffle', $options);
91
$seed = $options['i'] ?? $options['seed'] ?? NULL;
0 commit comments