Skip to content

Commit

Permalink
Merge pull request #765 from EquinoxOpenLibraryInitiative/non-numeric…
Browse files Browse the repository at this point in the history
…-taxRate

Protect against non-numeric taxRate value
  • Loading branch information
andyp-uk authored Apr 23, 2024
2 parents 6038734 + 3015e7e commit ee37f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/ajax_processing/submitCost.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
$resourcePayment->subscriptionEndDate = $end;
$resourcePayment->fundID = $fundIDArray[$key];
$resourcePayment->priceTaxExcluded = $pteArray[$key];
$resourcePayment->taxRate = $taxRateArray[$key];
$resourcePayment->taxRate = is_numeric($taxRateArray[$key]) ? $taxRateArray[$key] : null;
$resourcePayment->priceTaxIncluded = $ptiArray[$key];
$resourcePayment->paymentAmount = $paymentAmountArray[$key];
$resourcePayment->currencyCode = $currencyCodeArray[$key];
Expand Down

0 comments on commit ee37f1e

Please sign in to comment.