CRLF
This commit is contained in:
parent
faa6c7210c
commit
c707967567
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue