CC-3906: PlaylistLibrary-> user can not delete track which has been already
played even after cancelling the show. - fixed
This commit is contained in:
parent
1625cc6a25
commit
628f1518a7
|
@ -12,7 +12,7 @@ class Application_Model_Schedule {
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
$con = Propel::getConnection();
|
$con = Propel::getConnection();
|
||||||
$sql = "SELECT COUNT(*) FROM ".$CC_CONFIG["scheduleTable"]
|
$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);
|
$count = $con->query($sql)->fetchColumn(0);
|
||||||
if (is_numeric($count) && ($count != '0')) {
|
if (is_numeric($count) && ($count != '0')) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue