From e56ffdb076e7e61829a3a80b46b359c40784fbf3 Mon Sep 17 00:00:00 2001 From: FractalParadigm Date: Sat, 15 Mar 2025 18:14:38 -0400 Subject: [PATCH] Fixed a bug where a PHP error would show to non-admin and non-logged-in users --- tournament/tournament.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournament/tournament.php b/tournament/tournament.php index 5a9c7ea..6ae77d4 100644 --- a/tournament/tournament.php +++ b/tournament/tournament.php @@ -100,7 +100,7 @@ if (isset($tourneyResults)) { echo "

$notes

"; } - if ($_SESSION["privileges"] == 1) { + if (isset($_SESSION["privileges"]) && $_SESSION["privileges"] == 1) { echo "

Edit

"; } echo "";