Skip to content

Commit

Permalink
Replays: Properly error out if user isn't logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Feb 15, 2024
1 parent d91b6ae commit 3515fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions replay.pokemonshowdown.com/replay-manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ function userid($username) {
$replay['private'] = intval($_POST['private']);
$Replays->edit($replay);
echo '<p>Edited.</p>';
} else {
echo '<p>Editing privacy to '.$_POST['private']. 'failed. ';
}
?>
Change privacy: <form action="/<?= $replay['id'] ?>/manage" method="post" style="display: inline" data-target="replace">
Expand Down

0 comments on commit 3515fdd

Please sign in to comment.