From 375696b406f60f4687b30f3a21a8440f6256e45a Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 16 Apr 2024 15:26:10 -0400 Subject: [PATCH] save setting variable by doing this --- src/Imaging/GlideUrlBuilder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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), '/'); }