Skip to content

Commit 3515fdd

Browse files
committed
Replays: Properly error out if user isn't logged in
1 parent d91b6ae commit 3515fdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

replay.pokemonshowdown.com/replay-manage.php

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function userid($username) {
150150
$replay['private'] = intval($_POST['private']);
151151
$Replays->edit($replay);
152152
echo '<p>Edited.</p>';
153+
} else {
154+
echo '<p>Editing privacy to '.$_POST['private']. 'failed. ';
153155
}
154156
?>
155157
Change privacy: <form action="/<?= $replay['id'] ?>/manage" method="post" style="display: inline" data-target="replace">

0 commit comments

Comments
 (0)