Skip to content

Commit

Permalink
42090: Whoops\Exception\ErrorException thrown with message Undefined …
Browse files Browse the repository at this point in the history
…array key mime
  • Loading branch information
alex40724 committed Sep 20, 2024
1 parent 9be9486 commit 0aeeacd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ protected function buildFiles(): void
$cnt++;
// get mime type
//$mime = \ilObjMediaObject::getMimeType($file['fullpath']);
$mime = $file["mime"];
$output_filename = htmlspecialchars($file['name']);
$mime = $file["mime"] ?? "";
$output_filename = htmlspecialchars($file['name'] ?? "");

if ($this->media_type->isImage($mime)) {
$image = $ui_factory->image()->responsive($file['fullpath'], $output_filename);
Expand Down

0 comments on commit 0aeeacd

Please sign in to comment.