fix PHP8 undefined array key warning when resetting prefs to defaults
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user