Better error handling if the WHMCS API call for GTM code generation

fails
This commit is contained in:
Albert Santoni 2014-07-24 16:49:03 -04:00
parent 0d9cf2485e
commit f07e3b65eb
1 changed files with 5 additions and 0 deletions

View File

@ -453,6 +453,11 @@ class ShowbuilderController extends Zend_Controller_Action
$arr = json_decode($jsondata); # Decode JSON String
if ($arr->result !== "success") {
Logging::warning("WHMCS API call failed in " . __FUNCTION__);
return;
}
$client = $arr->client;
$stats = $arr->stats;
$currencyCode = $client->currency_code;