diff --git a/src/Imaging/GlideUrlBuilder.php b/src/Imaging/GlideUrlBuilder.php index 36916511b2..8bfdf2c325 100644 --- a/src/Imaging/GlideUrlBuilder.php +++ b/src/Imaging/GlideUrlBuilder.php @@ -34,8 +34,6 @@ public function build($item, $params) { $this->item = $item; - $filename = null; - switch ($this->itemType()) { case 'url': $path = 'http/'.base64_encode($item); @@ -57,7 +55,7 @@ public function build($item, $params) $builder = UrlBuilderFactory::create($this->options['route'], $this->options['key']); - if ($filename) { + if (isset($filename)) { $path .= Str::ensureLeft(URL::encode($filename), '/'); }