From dced49c4253e54bc8cf49bdbf6be5805db8030f7 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 13 Sep 2012 10:52:58 -0400 Subject: [PATCH] Removed unused variable --- .../application/controllers/PlaylistController.php | 12 ++++++------ .../application/controllers/ScheduleController.php | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/airtime_mvc/application/controllers/PlaylistController.php b/airtime_mvc/application/controllers/PlaylistController.php index 42c6a2442..9a8e304fc 100644 --- a/airtime_mvc/application/controllers/PlaylistController.php +++ b/airtime_mvc/application/controllers/PlaylistController.php @@ -203,18 +203,18 @@ class PlaylistController extends Zend_Controller_Action public function deleteAction() { - $ids = $this->_getParam('ids'); - $ids = (!is_array($ids)) ? array($ids) : $ids; + $ids = $this->_getParam('ids'); + $ids = (!is_array($ids)) ? array($ids) : $ids; $type = $this->_getParam('type'); - $obj = null; + $obj = null; - $objInfo = Application_Model_Library::getObjInfo($type); + $objInfo = Application_Model_Library::getObjInfo($type); $userInfo = Zend_Auth::getInstance()->getStorage()->read(); - $user = new Application_Model_User($userInfo->id); - $obj_sess = new Zend_Session_Namespace(UI_PLAYLISTCONTROLLER_OBJ_SESSNAME); + $obj_sess = new Zend_Session_Namespace( + UI_PLAYLISTCONTROLLER_OBJ_SESSNAME); try { Logging::info("Currently active {$type} {$obj_sess->id}"); diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index cbfee9dc2..8d9382717 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -529,9 +529,6 @@ class ScheduleController extends Zend_Controller_Action $isSaas = Application_Model_Preference::GetPlanLevel() == 'disabled'?false:true; $showInstanceId = $this->_getParam('id'); - // $type is used to determine if this edit is for the specific instance or for all - // repeating shows. It's value is either "instance","rebroadcast", or "all" - $type = $this->_getParam('type'); $this->view->action = "edit-show"; try {