Skip to content

Commit 78be204

Browse files
author
CryptAPI
committed
small bugfixes
1 parent b1aff46 commit 78be204

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
"CryptAPI\\": "cryptapi/"
2929
}
3030
},
31-
"version": "1.0.1"
31+
"version": "1.1.0"
3232
}

cryptapi/cryptapi.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ public function get_address() {
4040

4141
if (empty($this->own_address) || empty($this->coin) || empty($this->callback_url)) return null;
4242

43-
$req_parameters = http_build_query($this->parameters);
44-
$callback_url = "{$this->callback_url}?{$req_parameters}";
43+
$callback_url = $this->callback_url;
44+
if (!empty($this->parameters)) {
45+
$req_parameters = http_build_query($this->parameters);
46+
$callback_url = "{$this->callback_url}?{$req_parameters}";
47+
}
4548

4649
$ca_params = [
4750
'callback' => $callback_url,

0 commit comments

Comments
 (0)