Skip to content

Commit

Permalink
Merge pull request #13 from omarfurrer/master
Browse files Browse the repository at this point in the history
Fix for count(): Parameter must be an array or an object that impleme…
  • Loading branch information
zulucrypto authored Mar 31, 2018
2 parents cc3cdd5 + 3857469 commit d48d742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Horizon/Exception/HorizonException.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function buildMessage() {
if ($this->transactionResultCode) {
$message .= sprintf(" Tx Result: %s", $this->transactionResultCode);
}
if (count($this->operationResultCodes) > 0) {
if (!empty($this->operationResultCodes)) {
$message .= sprintf(" Op Results: %s", print_r($this->operationResultCodes,true));
}

Expand Down

0 comments on commit d48d742

Please sign in to comment.