Skip to content

Commit 40fb59e

Browse files
committed
fix bug
1 parent 3f8bc5d commit 40fb59e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/init.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
$WEBHOOK = new UnityWebhook();
3535
$GITHUB = new UnityGithub();
3636

37-
$_SESSION["messages"] = [];
37+
if (!array_key_exists("messages", $_SESSION)) {
38+
$_SESSION["messages"] = [];
39+
}
3840

3941
if (isset($_SERVER["REMOTE_USER"])) {
4042
// Check if SSO is enabled on this page

0 commit comments

Comments
 (0)