CC-4857: Playlist length will increase every time I duplicate it.
- fixed
This commit is contained in:
parent
94a87a0b2e
commit
e2b83a0c8c
1 changed files with 1 additions and 2 deletions
|
@ -91,13 +91,12 @@ class CcPlaylist extends BaseCcPlaylist {
|
||||||
SELECT SUM(cliplength) FROM cc_playlistcontents as pc
|
SELECT SUM(cliplength) FROM cc_playlistcontents as pc
|
||||||
LEFT 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
|
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;
|
SQL;
|
||||||
$stmt = $con->prepare($sql);
|
$stmt = $con->prepare($sql);
|
||||||
$stmt->bindValue(':p1', $this->getDbId());
|
$stmt->bindValue(':p1', $this->getDbId());
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$length = $stmt->fetchColumn();
|
$length = $stmt->fetchColumn();
|
||||||
|
|
||||||
if (is_null($length)) {
|
if (is_null($length)) {
|
||||||
$length = "00:00:00";
|
$length = "00:00:00";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue