Skip to content

Commit

Permalink
Contact: Fix null value handling of bs_allow_to_contact_me
Browse files Browse the repository at this point in the history
See: https://mantis.ilias.de/view.php?id=42436
(cherry picked from commit f719479)
  • Loading branch information
mjansenDatabay committed Oct 28, 2024
1 parent eb98fdb commit 62b2218
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected function fillRow(array $a_set): void
if (
$a_set['members_id'] !== $this->user->getId() &&
$relation->isUnlinked() &&
ilUtil::yn2tf(ilObjUser::_lookupPref($a_set['members_id'], 'bs_allow_to_contact_me'))
ilUtil::yn2tf((string) ilObjUser::_lookupPref($a_set['members_id'], 'bs_allow_to_contact_me'))
) {
$this->ctrl->setParameterByClass(ilBuddySystemGUI::class, 'user_id', $a_set['members_id']);
$buttons[] = $this->ui_factory
Expand Down

0 comments on commit 62b2218

Please sign in to comment.