CC-3906: PlaylistLibrary-> user can not delete track which has been already

played even after cancelling the show.

- fixed
This commit is contained in:
James 2012-06-08 15:24:37 -04:00
parent 1625cc6a25
commit 628f1518a7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Application_Model_Schedule {
global $CC_CONFIG;
$con = Propel::getConnection();
$sql = "SELECT COUNT(*) FROM ".$CC_CONFIG["scheduleTable"]
." WHERE file_id = {$p_fileId} AND starts > NOW()";
." WHERE file_id = {$p_fileId} AND ends > NOW() AT TIME ZONE 'UTC'";
$count = $con->query($sql)->fetchColumn(0);
if (is_numeric($count) && ($count != '0')) {
return TRUE;