Skip to content

Commit

Permalink
Var substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
marcguyer committed Mar 15, 2014
1 parent daa9168 commit 359d893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response.php
Expand Up @@ -520,7 +520,7 @@ public function getCustomerItemQuantityRemaining($code = null, $itemCode = null)
$item = $this->getCustomerItemQuantity($code, $itemCode);
// if this is an unlimited item, the quantity remaining is the majik number
$majik = 99999999.9;
if ($item['item']['quantityIncluded']+0 == 99999999.9) {
if ($item['item']['quantityIncluded']+0 == $majik) {
return $majik;
}
return $item['item']['quantityIncluded'] - $item['quantity']['quantity'];
Expand Down

0 comments on commit 359d893

Please sign in to comment.