Skip to content

Commit

Permalink
Merge pull request #9748 from JMAConsulting/CRM-19936
Browse files Browse the repository at this point in the history
CRM-19936, initialized array for line items
  • Loading branch information
eileenmcnaughton authored Jan 29, 2017
2 parents 40defe3 + aa1d180 commit 1593539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@ protected function postProcessMembership(

$i = 1;
foreach ($membershipTypeIDs as $memType) {
$membershipLineItems = array();
if ($i < count($membershipTypeIDs)) {
$membershipLineItems[$priceSetID][$membershipLines[$memType]] = $unprocessedLineItems[$priceSetID][$membershipLines[$memType]];
unset($unprocessedLineItems[$priceSetID][$membershipLines[$memType]]);
Expand Down

0 comments on commit 1593539

Please sign in to comment.