Skip to content

Commit 99ddb79

Browse files
committed
Fix typo
1 parent 918bf7e commit 99ddb79

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

replay.pokemonshowdown.com/replay-manage.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ function userid($username) {
9595
$matchSuccess = preg_match('/\\n\\|tier\\|([^|]*)\\n/', $replay['log'], $matches);
9696
$format = $replay['format'];
9797
if ($matchSuccess) $format = $matches[1];
98-
$players = explode(",", $replay['players']);
99-
$p1 = $players[0];
100-
$p2 = $players[1];
98+
$p1 = $replay['players'][0];
99+
$p2 = $replay['players'][1];
101100
$p1id = $users->userid($p1);
102101
$p2id = $users->userid($p2);
103102

0 commit comments

Comments
 (0)