Correct "coinchoose" spelling in ticker code

This commit is contained in:
Brian Ziemek 2018-03-18 02:47:37 -04:00 committed by GitHub
parent 028889584c
commit 8f33ceb3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ class Tools extends Base {
**/
private function getApiType($url) {
if (preg_match('/coinchoose.com/', $url)) {
return 'coinchose';
return 'coinchoose';
} else if (preg_match('/btc-e.nz/', $url)) {
return 'btce';
} else if (preg_match('/cryptopia.co.nz/', $url)) {
@ -103,7 +103,7 @@ class Tools extends Base {
// if api data is valid, extract price depending on API type
if (is_array($aData)) {
switch ($strApiType) {
case 'coinchose':
case 'coinchoose':
foreach ($aData as $aItem) {
if($strBase == $aItem[0])
return $aItem['price'];