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 cfc07e5 commit baa3d49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/ILIAS/User/classes/class.ilObjUserFolderGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -2434,23 +2434,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 baa3d49

Please sign in to comment.