The hacky way simplified. Removed variable
This commit is contained in:
parent
790617dd11
commit
0b765417f2
@ -68,7 +68,6 @@ class Tools extends Base {
|
|||||||
public function getPrice() {
|
public function getPrice() {
|
||||||
$aData = $this->getApi($this->config['price']['url'], $this->config['price']['target']);
|
$aData = $this->getApi($this->config['price']['url'], $this->config['price']['target']);
|
||||||
$strCurrency = $this->config['currency'];
|
$strCurrency = $this->config['currency'];
|
||||||
$strCurrencyBTC = "$strCurrency/BTC";
|
|
||||||
// Check the API type for configured URL
|
// Check the API type for configured URL
|
||||||
if (!$strApiType = $this->getApiType($this->config['price']['url']))
|
if (!$strApiType = $this->getApiType($this->config['price']['url']))
|
||||||
return false;
|
return false;
|
||||||
@ -88,7 +87,7 @@ class Tools extends Base {
|
|||||||
return @$aData['return']['markets'][$strCurrency]['lasttradeprice'];
|
return @$aData['return']['markets'][$strCurrency]['lasttradeprice'];
|
||||||
break;
|
break;
|
||||||
case 'cryptorush':
|
case 'cryptorush':
|
||||||
return @$aData[$strCurrencyBTC]['last_trade'];
|
return @$aData["$strCurrency/BTC"]['last_trade'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user