diff --git a/Services/MediaObjects/classes/class.ilMediaImageUtil.php b/Services/MediaObjects/classes/class.ilMediaImageUtil.php index 8be0e391d656..90342da18872 100644 --- a/Services/MediaObjects/classes/class.ilMediaImageUtil.php +++ b/Services/MediaObjects/classes/class.ilMediaImageUtil.php @@ -60,7 +60,7 @@ public static function getImageSize(string $a_location): ?array $size = getimagesize($a_location); } } - if (!isset($size)) { + if (!isset($size) || $size === false) { $size = [0,0]; } return $size;