fix PHP8 undefined array key warning when resetting prefs to defaults
This commit is contained in:
parent
d391a01de7
commit
9457bb090a
|
@ -275,7 +275,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetconfig(): void {
|
function resetconfig(): void {
|
||||||
Prefs::reset($_SESSION["uid"], $_SESSION["profile"]);
|
Prefs::reset($_SESSION["uid"], $_SESSION["profile"] ?? null);
|
||||||
|
|
||||||
print "PREFS_NEED_RELOAD";
|
print "PREFS_NEED_RELOAD";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue