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
  • Loading branch information
mjansenDatabay committed Oct 28, 2024
1 parent 2316d1d commit f719479
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,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']);
$current_selection_list->addItem(
Expand Down

0 comments on commit f719479

Please sign in to comment.