Skip to content

Commit ddf64de

Browse files
committed
Fix for Helper/Image.php
1 parent 2143ca2 commit ddf64de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function resize($width, $height = null, $keepFrame = null)
104104
{
105105
if ($this->_baseFile) {
106106
$pathinfo = pathinfo(($this->_baseFile));
107-
if (isset($pathinfo) && $pathinfo['extension'] == 'webp') {
107+
if (isset($pathinfo) && isset($pathinfo['extension']) && $pathinfo['extension'] == 'webp') {
108108
$this->_newFile = $this->_baseFile;
109109
} else {
110110
$path = 'blog/cache/' . $width . 'x' . $height;

0 commit comments

Comments
 (0)