This commit is contained in:
Naomi 2013-10-02 11:25:40 -04:00
parent faa6c7210c
commit c707967567

View file

@ -412,18 +412,18 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
/* /*
* method is not used, webstreams aren't currently kept track of for isScheduled. * method is not used, webstreams aren't currently kept track of for isScheduled.
*/ */
public static function setIsScheduled($p_webstreamId, $p_status) { public static function setIsScheduled($p_webstreamId, $p_status) {
$webstream = CcWebstreamQuery::create()->findPK($p_webstreamId); $webstream = CcWebstreamQuery::create()->findPK($p_webstreamId);
$updateIsScheduled = false; $updateIsScheduled = false;
if (isset($webstream) && !in_array($p_webstreamId, if (isset($webstream) && !in_array($p_webstreamId,
Application_Model_Schedule::getAllFutureScheduledWebstreams())) { Application_Model_Schedule::getAllFutureScheduledWebstreams())) {
//$webstream->setDbIsScheduled($p_status)->save(); //$webstream->setDbIsScheduled($p_status)->save();
$updateIsScheduled = true; $updateIsScheduled = true;
} }
return $updateIsScheduled; return $updateIsScheduled;
} }
} }