Skip to content

Commit

Permalink
test for undefined parameters causing elplatt#350
Browse files Browse the repository at this point in the history
  • Loading branch information
i3 VM root account committed Jun 29, 2015
1 parent e186378 commit c21df64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crm/modules/foxycart_payment/ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@
// Parse the data and insert into the database
// 'USD 12.34' goes to ['USD', '1234']
$parts = explode(' ', $product_price);
file_put_contents($debug, print_r($parts, true) . "\n", FILE_APPEND);
$payment_amount = payment_parse_currency($parts[1], $parts[0]);
if(isset($debug)) {
file_put_contents($debug, print_r($parts, true) . "\n", FILE_APPEND);
}
// Determine cid
$cid = '';
if (empty($cid)) {
Expand Down

0 comments on commit c21df64

Please sign in to comment.