Skip to content

Commit fb598a1

Browse files
committed
Update AbstractRequest.php
1 parent 7494358 commit fb598a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function setCardReference($value)
161161
public function getAmount()
162162
{
163163
$amount = $this->getParameter('amount');
164-
if ($amount) {
164+
if ($amount !== NULL) {
165165
if (!is_float($amount) &&
166166
$this->getCurrencyDecimalPlaces() > 0 &&
167167
false === strpos((string) $amount, '.')) {

0 commit comments

Comments
 (0)