CC-4857: Playlist length will increase every time I duplicate it.

- fixed
This commit is contained in:
james 2013-01-17 22:20:28 -05:00
parent 94a87a0b2e
commit e2b83a0c8c
1 changed files with 1 additions and 2 deletions

View File

@ -91,13 +91,12 @@ class CcPlaylist extends BaseCcPlaylist {
SELECT SUM(cliplength) FROM cc_playlistcontents as pc
LEFT JOIN cc_files as f ON pc.file_id = f.id
WHERE PLAYLIST_ID = :p1
AND f.file_exists is NUll or 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());
$stmt->execute();
$length = $stmt->fetchColumn();
if (is_null($length)) {
$length = "00:00:00";
}