Fixed a bug where a PHP error would show to non-admin and non-logged-in users
This commit is contained in:
parent
00cab61c65
commit
e56ffdb076
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user