Fix undefined var
This commit is contained in:
parent
8c01f072c2
commit
07f7dd3352
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue