diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index 356210b74..4dcef681d 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -137,7 +137,7 @@ class Application_Model_Scheduler if ($type === "audioclip") { $file = CcFilesQuery::create()->findPK($id, $this->con); - if (is_null($file) || !$file->getDbFileExists()) { + if (is_null($file) || !$file->displayable()) { throw new Exception("A selected File does not exist!"); } else { $data = $this->fileInfo; @@ -195,7 +195,7 @@ class Application_Model_Scheduler $dynamicFiles = $bl->getListOfFilesUnderLimit(); foreach ($dynamicFiles as $fileId=>$f) { $file = CcFilesQuery::create()->findPk($fileId); - if (isset($file) && $file->getDbFileExists()) { + if (isset($file) && $file->displayable()) { $data["id"] = $file->getDbId(); $data["cliplength"] = $file->getDbLength(); $data["cuein"] = "00:00:00"; @@ -217,7 +217,7 @@ class Application_Model_Scheduler //need to return $stream = CcWebstreamQuery::create()->findPK($id, $this->con); - if (is_null($stream) /* || !$file->getDbFileExists() */) { + if (is_null($stream) /* || !$file->displayable() */) { throw new Exception("A selected File does not exist!"); } else { $data = $this->fileInfo; @@ -252,7 +252,7 @@ class Application_Model_Scheduler $dynamicFiles = $bl->getListOfFilesUnderLimit(); foreach ($dynamicFiles as $fileId=>$f) { $file = CcFilesQuery::create()->findPk($fileId); - if (isset($file) && $file->getDbFileExists()) { + if (isset($file) && $file->displayable()) { $data["id"] = $file->getDbId(); $data["cliplength"] = $file->getDbLength(); $data["cuein"] = "00:00:00";