Skip to content

Commit 4cee98e

Browse files
committed
Manual change to make pull request merge a little easier.
1 parent d7af692 commit 4cee98e

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
@@ -164,7 +164,7 @@ public function getAmount()
164164
$message = 'Please specify amount as a string or float, '
165165
. 'with decimal places (e.g. \'10.00\' to represent $10.00).';
166166

167-
if (isset($amount)) {
167+
if ($amount !== null) {
168168
// Don't allow integers for currencies that support decimals.
169169
// This is for legacy reasons - upgrades from v0.9
170170
if (is_int($amount) && $this->getCurrencyDecimalPlaces() > 0) {

0 commit comments

Comments
 (0)