From c2db20f0048ca2af79171f255a1c2b8e35cb70d6 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 12 Apr 2012 15:10:40 -0400 Subject: [PATCH] CC-3548: Schedule: Separate repeate show template and single instance on 'When' section -cleanup --- airtime_mvc/application/models/Schedule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index ae43c0331..48343b891 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -635,7 +635,7 @@ class Application_Model_Schedule { * this method to manipulate the view (this should be done inside the controller function). With * 2.1 deadline looming, this is OK for now. -Martin */ public static function updateShowInstance($data, $controller){ - $isSaas = Application_Model_Preference::GetPlanLevel() == 'disabled'?false:true; + $isSaas = (Application_Model_Preference::GetPlanLevel() != 'disabled'); $formWhat = new Application_Form_AddShowWhat(); $formWhen = new Application_Form_AddShowWhen(); @@ -718,7 +718,7 @@ class Application_Model_Schedule { $user = new Application_Model_User($userInfo->id); $isAdminOrPM = $user->isUserType(array(UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER)); - $isSaas = Application_Model_Preference::GetPlanLevel() == 'disabled'?false:true; + $isSaas = (Application_Model_Preference::GetPlanLevel() != 'disabled'); $record = false; $formWhat = new Application_Form_AddShowWhat();