Fix typo, credit to @alxy for identifying

This commit is contained in:
Luke Towers 2020-08-30 02:08:06 -06:00
parent 812c0552e8
commit acd0616aaa
1 changed files with 3 additions and 3 deletions

View File

@ -1212,14 +1212,14 @@ class Lists extends WidgetBase
// Handle absolute URLs // Handle absolute URLs
} elseif (str_contains($value, '://')) { } elseif (str_contains($value, '://')) {
$value = $value; $image = $value;
// Assume all other values to be from the media library // Assume all other values to be from the media library
} else { } else {
$value = MediaLibrary::url($value); $image = MediaLibrary::url($value);
} }
if (!is_null($value)) { if (!is_null($image)) {
$imageUrl = ImageResizer::filterGetUrl($image, $width, $height, $options); $imageUrl = ImageResizer::filterGetUrl($image, $width, $height, $options);
return "<img src='$imageUrl' width='$width' height='$height' />"; return "<img src='$imageUrl' width='$width' height='$height' />";
} }