From 3f67d369098aebf7ade95bfc2062db8c78d17b19 Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 27 Jan 2022 11:41:01 +0100 Subject: [PATCH] fix(legacy): default values when array is null --- legacy/application/models/Playlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/application/models/Playlist.php b/legacy/application/models/Playlist.php index 661522b4c..18d11fd1f 100644 --- a/legacy/application/models/Playlist.php +++ b/legacy/application/models/Playlist.php @@ -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