diff --git a/airtime_mvc/application/controllers/ShowbuilderController.php b/airtime_mvc/application/controllers/ShowbuilderController.php index 9d7b36d49..13d7d1abd 100644 --- a/airtime_mvc/application/controllers/ShowbuilderController.php +++ b/airtime_mvc/application/controllers/ShowbuilderController.php @@ -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;