From f719479c0a3acb6ff2d98dd8af74e5a2f2609cb1 Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 28 Oct 2024 14:59:21 +0100 Subject: [PATCH] Contact: Fix `null` value handling of `bs_allow_to_contact_me` See: https://mantis.ilias.de/view.php?id=42436 --- .../classes/class.ilMailSearchObjectMembershipsTableGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Contact/classes/class.ilMailSearchObjectMembershipsTableGUI.php b/Services/Contact/classes/class.ilMailSearchObjectMembershipsTableGUI.php index 64635b83aad3..3fcbc143c6f5 100644 --- a/Services/Contact/classes/class.ilMailSearchObjectMembershipsTableGUI.php +++ b/Services/Contact/classes/class.ilMailSearchObjectMembershipsTableGUI.php @@ -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(