Skip to content

Commit

Permalink
error : is_empty is undefined function by motallebi33
Browse files Browse the repository at this point in the history
  • Loading branch information
jaggedsoft authored Nov 24, 2019
2 parents 0a209ad + 08e02ee commit 2fd6e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,10 @@ public function withdraw(string $asset, string $address, $amount, $addressTag =
"amount" => $amount,
"wapi" => true,
];
if (is_null($addressName) === false && is_empty($addressName) === false) {
if (is_null($addressName) === false && empty($addressName) === false) {
$options['name'] = $addressName;
}
if (is_null($addressTag) === false && is_empty($addressTag) === false) {
if (is_null($addressTag) === false && empty($addressTag) === false) {
$options['addressTag'] = $addressTag;
}
return $this->httpRequest("v3/withdraw.html", "POST", $options, true);
Expand Down

0 comments on commit 2fd6e93

Please sign in to comment.