Skip to content
Snippets Groups Projects
Commit 9c10e52c authored by Volodymyr Dovhaliuk's avatar Volodymyr Dovhaliuk Committed by Michael Lander
Browse files

Resolve #3424324 "Warning undefined array key"

parent c1afae65
No related branches found
No related tags found
1 merge request!12Resolve #3424324 "Warning undefined array key"
......@@ -40,7 +40,7 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController {
}
$path_info = pathinfo($target);
// If .webp file, look for image to derive from.
if ($path_info['extension'] == 'webp') {
if (isset($path_info['extension']) && $path_info['extension'] === 'webp') {
$image_uri = $scheme . '://' . $target;
// Continue processing if source found, else throw NotFoundHttpException.
if ($source_uri = $this->lookupSourceImage($image_uri)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment