Skip to content

Commit

Permalink
Fix adding segment to the proper location
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalseeland committed Mar 22, 2024
1 parent 60e01dd commit 48d4e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/api/class.ilAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private function sendEpisode(ilOpencastEpisode $episodeObject): void
if ($segmentsUrl) {
try {
$segments = $this->convertSegment($segmentsUrl, $previewrefs);
$episode['search-results']['result'][0]["segments"] = $segments;
$episode['search-results']['result']["segments"] = $segments;
} catch (Exception $e) {
$this->logger->error($e->getMessage() . ':' . $e->getTraceAsString());
}
Expand Down

0 comments on commit 48d4e6e

Please sign in to comment.