CC-4857: Playlist length will increase every time I duplicate it.
- fixed
This commit is contained in:
parent
94a87a0b2e
commit
e2b83a0c8c
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue