From 5cd103851694f7761d18c4072349d1b1ae42ec91 Mon Sep 17 00:00:00 2001 From: mjansen Date: Thu, 21 Nov 2024 09:28:44 +0100 Subject: [PATCH] User: Fix accessing undefined key `default_mail_incoming_mail` (and others) See: https://mantis.ilias.de/view.php?id=42867 --- Services/User/classes/class.ilObjUserFolderGUI.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Services/User/classes/class.ilObjUserFolderGUI.php b/Services/User/classes/class.ilObjUserFolderGUI.php index ec2293ffb9ad..98251ad26ac5 100755 --- a/Services/User/classes/class.ilObjUserFolderGUI.php +++ b/Services/User/classes/class.ilObjUserFolderGUI.php @@ -2614,23 +2614,23 @@ public function saveGlobalUserSettingsObject(string $action = ''): void $this->ilias->setSetting( 'mail_incoming_mail', - $selected['default_mail_incoming_mail'] + $selected['default_mail_incoming_mail'] ?? '0' ); $this->ilias->setSetting( 'chat_osc_accept_msg', - $selected['default_chat_osc_accept_msg'] + $selected['default_chat_osc_accept_msg'] ?? 'n' ); $this->ilias->setSetting( 'chat_broadcast_typing', - $selected['default_chat_broadcast_typing'] + $selected['default_chat_broadcast_typing'] ?? 'n' ); $this->ilias->setSetting( 'bs_allow_to_contact_me', - $selected['default_bs_allow_to_contact_me'] + $selected['default_bs_allow_to_contact_me'] ?? 'n' ); $this->ilias->setSetting( 'hide_own_online_status', - $selected['default_hide_own_online_status'] + $selected['default_hide_own_online_status'] ?? 'n' ); if ($this->usrFieldChangeListenersAccepted && count($changed_fields) > 0) {