Skip to content

Commit

Permalink
Merge pull request #12210 from colemanw/dev/core#117
Browse files Browse the repository at this point in the history
dev/core#117 Replace useage of deprecated each() in MembershpView
  • Loading branch information
eileenmcnaughton authored May 25, 2018
2 parents 02666f9 + 3030f6f commit 86d56d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CRM/Member/Form/MembershipView.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ public function preProcess() {
$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
Expand Down

0 comments on commit 86d56d0

Please sign in to comment.