fix(legacy): default values when array is null

This commit is contained in:
jo 2022-01-27 11:41:01 +01:00 committed by Kyle Robbertze
parent 32cb67806a
commit 3f67d36909
1 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ SQL;
//format the fades in format 00(.000000)
$fades = $this->getFadeInfo($row['position']);
$row['fadein'] = $fades[0];
$row['fadeout'] = $fades[1];
$row['fadein'] = $fades[0] ?? null;
$row['fadeout'] = $fades[1] ?? null;
// format the cues in format 00:00:00(.0)
// we need to add the '.0' for cues and not fades