diff --git a/airtime_mvc/application/views/helpers/TrialRemaining.php b/airtime_mvc/application/views/helpers/TrialRemaining.php index 64a703a1c..bdbd0caae 100644 --- a/airtime_mvc/application/views/helpers/TrialRemaining.php +++ b/airtime_mvc/application/views/helpers/TrialRemaining.php @@ -5,6 +5,9 @@ class Airtime_View_Helper_TrialRemaining extends Zend_View_Helper_Abstract public function trialRemaining() { $ending_date = Application_Model_Preference::GetTrialEndingDate(); + if ($ending_date == '') { + return ''; + } $datetime1 = new DateTime(); $datetime2 = new DateTime($ending_date); $interval = $datetime1->diff($datetime2); diff --git a/airtime_mvc/application/views/scripts/partialviews/header.phtml b/airtime_mvc/application/views/scripts/partialviews/header.phtml index e747f025d..82381e4da 100644 --- a/airtime_mvc/application/views/scripts/partialviews/header.phtml +++ b/airtime_mvc/application/views/scripts/partialviews/header.phtml @@ -36,15 +36,15 @@
  • user ?> | Logout
  • - is_trial){?> + trial_remain != '' && $this->trial_remain != "Trial expired."){?>
    -

    Your Trial expires in

    +

    Your trial expires in

    trial_remain?>
    days
    - Buy Now + My Account