Skip to content

Commit

Permalink
Layout import: fails when there is a subplaylist but no playlist data…
Browse files Browse the repository at this point in the history
… in the import file.
  • Loading branch information
dasgarner committed Aug 1, 2023
1 parent 7ddbbf2 commit 2f1f84a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Factory/LayoutFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -1303,10 +1303,14 @@ public function createFromZip(
// Construct the Layout
if ($playlistDetails !== false) {
$playlistDetails = json_decode(($playlistDetails), true);
} else {
$playlistDetails = [];
}

if ($nestedPlaylistDetails !== false) {
$nestedPlaylistDetails = json_decode($nestedPlaylistDetails, true);
} else {
$nestedPlaylistDetails = [];
}

$jsonResults = $this->loadByJson(
Expand Down

0 comments on commit 2f1f84a

Please sign in to comment.