Skip to content

Commit

Permalink
Merge pull request #23 from gabrielbull/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
gabrielbull committed Apr 20, 2015
2 parents 5cd0fd8 + ac1ef51 commit a8c8df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ups/Entity/Charges.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function __construct($response = null)
if (isset($response->CurrencyCode)) {
$this->CurrencyCode = $response->CurrencyCode;
}
if (isset($response->MonetaryValue)) {
if (isset($response->MonetaryValue) && !$response->MonetaryValue instanceof \stdClass) {
$this->MonetaryValue = (float)$response->MonetaryValue;
}
if (isset($response->Code)) {
Expand All @@ -29,4 +29,4 @@ function __construct($response = null)
}
}
}
}
}

0 comments on commit a8c8df5

Please sign in to comment.