Fixed a bug where a PHP error would show to non-admin and non-logged-in users

This commit is contained in:
FractalParadigm 2025-03-15 18:14:38 -04:00
parent 00cab61c65
commit e56ffdb076

View File

@ -100,7 +100,7 @@ if (isset($tourneyResults)) {
echo "<p style=\"width:70%;\">$notes</p>";
}
if ($_SESSION["privileges"] == 1) {
if (isset($_SESSION["privileges"]) && $_SESSION["privileges"] == 1) {
echo "<p class=\"editButton\"><a href=\"/tournament/edit.php?tournamentID=" . $tourneyID . "\" onclick=\"redirect('this', '/admin/data_management/edit_tourney.php?tourneyID=" . $tourneyID . "');\">Edit</a></p>";
}
echo "</div>";