Unverified Commit d5abee54 authored by colemanw's avatar colemanw Committed by GitHub

Merge pull request #14258 from eileenmcnaughton/tidy

[REF] Super Minor code readability fix
parents 405192f1 47019034
......@@ -1092,8 +1092,7 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m
// CRM-15681 don't display sub-types in UI
continue;
}
foreach (['main', 'other'] as $moniker) {
$contact = &$$moniker;
foreach (['main' => $main, 'other' => $other] as $moniker => $contact) {
$value = CRM_Utils_Array::value($field, $contact);
if (isset($specialValues[$moniker][$field]) && is_string($specialValues[$moniker][$field])) {
$value = CRM_Core_DAO::VALUE_SEPARATOR . trim($specialValues[$moniker][$field], CRM_Core_DAO::VALUE_SEPARATOR) . CRM_Core_DAO::VALUE_SEPARATOR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment