Change api.php
This commit is contained in:
4
api.php
4
api.php
@@ -800,8 +800,8 @@ if ($q == "getAddress") {
|
|||||||
$account = $acc->get_address($public_key);
|
$account = $acc->get_address($public_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($account)) {
|
if(empty($asset)&&empty($account)){
|
||||||
api_err("Invalid account id");
|
api_err("An asset or an account are necessary");
|
||||||
}
|
}
|
||||||
$account = san($account);
|
$account = san($account);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user