From d984ec9b43d79e33e735df3d72eeec78472d412b Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 11 Jun 2014 13:45:23 -0400 Subject: [PATCH] Don't use NumberFormatter because of PECL intl dependency --- .../application/controllers/ShowbuilderController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/controllers/ShowbuilderController.php b/airtime_mvc/application/controllers/ShowbuilderController.php index 66fb33a7f..4e8a1d4fc 100644 --- a/airtime_mvc/application/controllers/ShowbuilderController.php +++ b/airtime_mvc/application/controllers/ShowbuilderController.php @@ -425,12 +425,16 @@ class ShowbuilderController extends Zend_Controller_Action $client = $arr->client; $stats = $arr->stats; $currencyCode = $client->currency_code; - $incomeCents = NumberFormatter::parseCurrency($stats->income, $currencyCode); + //$incomeCents = NumberFormatter::parseCurrency($stats->income, $currencyCode); $isTrial = true; - if ($incomeCents > 0) { + if (strpos($stats->income, "0.00") === FALSE) { $isTrial = false; } + /* + if ($incomeCents > 0) { + $isTrial = false; + }*/ $plan = Application_Model_Preference::GetPlanLevel(); $country = $client->country; $postcode = $client->postcode; @@ -456,7 +460,7 @@ class ShowbuilderController extends Zend_Controller_Action 'PlanType': '" . $plan . "', 'Trial': '" . $isTrial . "', 'Country': '" . $country . "', - 'AccountDuration': '" . $accountDuration . "' + 'AccountDuration': '" . strval($accountDuration) . "' });"; }