Change api.php

This commit is contained in:
Ario Sius
2021-03-12 10:29:06 +01:00
parent 57cf6faf21
commit bf668f4327

View File

@@ -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);