Skip to content

Commit

Permalink
Fix Soap User prefs check rejecting imported values (#8584)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer authored and kergomard committed Dec 5, 2024
1 parent 67ad790 commit cd42dc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Services/User/classes/class.ilUserImportParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1062,13 +1062,13 @@ public function importEndTag(
}
}

if (!is_array($this->prefs) || !in_array('chat_osc_accept_msg', $this->prefs)) {
if (!is_array($this->prefs) || !array_key_exists('chat_osc_accept_msg', $this->prefs)) {
$this->userObj->setPref('chat_osc_accept_msg', $this->settings->get('chat_osc_accept_msg', 'n'));
}
if (!is_array($this->prefs) || !in_array('chat_broadcast_typing', $this->prefs)) {
if (!is_array($this->prefs) || !array_key_exists('chat_broadcast_typing', $this->prefs)) {
$this->userObj->setPref('chat_broadcast_typing', $this->settings->get('chat_broadcast_typing', 'n'));
}
if (!is_array($this->prefs) || !in_array('bs_allow_to_contact_me', $this->prefs)) {
if (!is_array($this->prefs) || !array_key_exists('bs_allow_to_contact_me', $this->prefs)) {
$this->userObj->setPref('bs_allow_to_contact_me', $this->settings->get('bs_allow_to_contact_me', 'n'));
}

Expand Down

0 comments on commit cd42dc6

Please sign in to comment.