fix PHP8 undefined array key warning when resetting prefs to defaults

This commit is contained in:
Andrew Dolgov 2022-06-05 11:14:42 +03:00
parent d391a01de7
commit 9457bb090a
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class Pref_Prefs extends Handler_Protected {
}
function resetconfig(): void {
Prefs::reset($_SESSION["uid"], $_SESSION["profile"]);
Prefs::reset($_SESSION["uid"], $_SESSION["profile"] ?? null);
print "PREFS_NEED_RELOAD";
}