File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 3232$ WEBHOOK = new UnityWebhook ();
3333$ GITHUB = new UnityGithub ();
3434
35- if (!array_key_exists ("messages " , $ _SESSION )) {
36- $ _SESSION ["messages " ] = [];
37- }
38-
39- if (!array_key_exists ("csrf_tokens " , $ _SESSION )) {
40- $ _SESSION ["csrf_tokens " ] = [];
41- }
42-
4335session_start ();
4436// https://stackoverflow.com/a/1270960/18696276
4537if (time () - ($ _SESSION ["LAST_ACTIVITY " ] ?? 0 ) > CONFIG ["site " ]["session_cleanup_idle_seconds " ]) {
5042}
5143$ _SESSION ["LAST_ACTIVITY " ] = time ();
5244
45+ if (!array_key_exists ("messages " , $ _SESSION )) {
46+ $ _SESSION ["messages " ] = [];
47+ }
48+
49+ if (!array_key_exists ("csrf_tokens " , $ _SESSION )) {
50+ $ _SESSION ["csrf_tokens " ] = [];
51+ }
52+
5353if (isset ($ _SERVER ["REMOTE_USER " ])) {
5454 // Check if SSO is enabled on this page
5555 $ SSO = UnitySSO::getSSO ();
You can’t perform that action at this time.
0 commit comments