From 2eef47eed9484fcb0d8973a5e0dcd2479c45003a Mon Sep 17 00:00:00 2001 From: Nicolas Ganivet Date: Fri, 30 Aug 2013 22:24:11 -0600 Subject: [PATCH] I've had to correct this for 4.2 LTS - apparently $relTypeDir[$dir] is of type Array now. --- CRM/Member/Form/MembershipView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/MembershipView.php b/CRM/Member/Form/MembershipView.php index a72e3f7875..c3c9dd11bf 100644 --- a/CRM/Member/Form/MembershipView.php +++ b/CRM/Member/Form/MembershipView.php @@ -251,7 +251,7 @@ SELECT r.id, c.id as cid, c.display_name as name, c.job_title as comment, WHERE r.contact_id_y = {$values['contact_id']} AND r.is_active = 1 AND c.is_deleted = 0"; $query = ''; foreach (array('a', 'b') as $dir) { - if (CRM_Utils_Array::value($dir, $relTypeDir)) { + if (isset($relTypeDir[$dir])) { $query .= ($query ? ' UNION ' : '') . str_replace('_y', '_' . $dir, str_replace('_x', '_' . ($dir == 'a' ? 'b' : 'a'), $select)) . ' AND r.relationship_type_id IN (' . implode(',', $relTypeDir[$dir]) . ')'; -- 2.25.1