diff options
author | Andrew Dolgov <[email protected]> | 2022-06-05 11:14:42 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-06-05 11:14:42 +0300 |
commit | 9457bb090aba5c9134fb001b2ba41fe32a8c66b8 (patch) | |
tree | 9a255e3c205eb47683604da52291739911fe4fa2 /classes/pref | |
parent | d391a01de7cb8509cf92fa005b51b282f34c39d7 (diff) |
fix PHP8 undefined array key warning when resetting prefs to defaults
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 2d72a7732..8c044b49f 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -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"; } |