diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 8568cb285..81ceb1d30 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -131,7 +131,7 @@ class Application_Model_Preference if ($isUserValue && is_null($userId)) { throw new Exception("User id can't be null for a user preference."); } - + $res = $cache->fetch($key, $isUserValue, $userId); if ($res !== false) { //Logging::info("returning {$key} {$userId} from cache. = {$res}"); @@ -146,8 +146,7 @@ class Application_Model_Preference $paramMap[':key'] = $key; //For user specific preference, check if id matches as well - if (isset($userId)) { - + if ($isUserValue) { $sql .= " AND subjid = :id"; $paramMap[':id'] = $userId; } @@ -166,7 +165,7 @@ class Application_Model_Preference $paramMap[':key'] = $key; //For user specific preference, check if id matches as well - if (isset($userId)) { + if ($isUserValue) { $sql .= " AND subjid = :id"; $paramMap[':id'] = $userId; } diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index 76c60b80b..5858907f9 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -778,12 +778,6 @@ SQL; ->save(); } } - - //remove the old repeating deleted instances. - /*CcShowInstancesQuery::create() - ->filterByDbShowId($showId) - ->filterByDbModifiedInstance(true) - ->delete();*/ } return false;