Skip to content

Commit

Permalink
default duration on image playlist item
Browse files Browse the repository at this point in the history
  • Loading branch information
brookgagnon committed Nov 25, 2024
1 parent 3a4c00a commit 4871f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/playlists_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function get_items($id)
}

if ($item['type'] == 'image' || $item['type'] == 'document') {
$item['duration'] = $item['properties']['duration'];
$item['duration'] = $item['properties']['duration'] ?? 15;
}

// we don't use this (merged into 'type')
Expand Down

0 comments on commit 4871f28

Please sign in to comment.