CC-4770: Playlist's length doesn't counts Webstream and Smartblock in

- the bug was introduced by CC-4668
- fixed
This commit is contained in:
james 2013-01-09 22:53:29 -05:00
parent 3a72302a3c
commit 594a38da16
1 changed files with 2 additions and 2 deletions

View File

@ -89,9 +89,9 @@ class CcPlaylist extends BaseCcPlaylist {
{
$sql = <<<SQL
SELECT SUM(cliplength) FROM cc_playlistcontents as pc
JOIN cc_files as f ON pc.file_id = f.id
LEFT JOIN cc_files as f ON pc.file_id = f.id
WHERE PLAYLIST_ID = :p1
AND f.file_exists = true
AND f.file_exists is NUll or f.file_exists = true
SQL;
$stmt = $con->prepare($sql);
$stmt->bindValue(':p1', $this->getDbId());