Skip to content

Commit

Permalink
User: Fix accessing undefined key default_mail_incoming_mail (and o…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay authored and kergomard committed Nov 22, 2024
1 parent 4d3e2fc commit 5cd1038
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Services/User/classes/class.ilObjUserFolderGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cd1038

Please sign in to comment.