From: Coleman Watts Date: Fri, 25 May 2018 17:20:40 +0000 (-0600) Subject: dev/core#117 Replace useage of deprecated each() in MembershpView X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3030f6f575bb9617a264a01ba6d7201108f4d275;p=civicrm-core.git dev/core#117 Replace useage of deprecated each() in MembershpView --- diff --git a/CRM/Member/Form/MembershipView.php b/CRM/Member/Form/MembershipView.php index 75eec53687..9d656c52dd 100644 --- a/CRM/Member/Form/MembershipView.php +++ b/CRM/Member/Form/MembershipView.php @@ -255,8 +255,7 @@ END AS 'relType' $relTypeId = explode(CRM_Core_DAO::VALUE_SEPARATOR, $membershipType['relationship_type_id']); $relDirection = explode(CRM_Core_DAO::VALUE_SEPARATOR, $membershipType['relationship_direction']); foreach ($relTypeId as $rid) { - $dir = each($relDirection); - $relTypeDir[substr($dir['value'], 0, 1)][] = $rid; + $relTypeDir[substr($relDirection[0], 0, 1)][] = $rid; } // build query in 2 parts with a UNION if necessary // _x and _y are replaced with _a and _b first, then vice-versa