From 07f7dd33521f33f9f4887629711d6d3768d48d66 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Thu, 6 Mar 2025 09:53:13 +0100 Subject: [PATCH] Fix undefined var --- lib/Cache.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cache.php b/lib/Cache.php index 950a12a..68c823a 100644 --- a/lib/Cache.php +++ b/lib/Cache.php @@ -100,6 +100,8 @@ class Cache { $name = strtolower($name); + $cacheFile = PUBLIC_CACHE_DIR . "/" . $name; + $ext = substr($name, strrpos($name, ".") + 1); if ($skipExtensionCheck || strtolower($ext) == "jpg" || strtolower($ext) == "jpeg" || strtolower($ext) == "png" || strtolower($ext) == "webp"){ $size = strlen($data);