From ae85ce2e95879d9af57d5502adaaba6ac0af1858 Mon Sep 17 00:00:00 2001 From: Richard Jesudason Date: Wed, 13 Apr 2016 09:20:20 +0100 Subject: [PATCH] Minor PHP < 5.5 bug PHP < 5.5 error "Can't use method return value in write context in..." caused by passing value by reference within empty() - see http://stackoverflow.com/a/4328049/476 --- app/code/community/Technooze/Timage/Helper/Data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/Technooze/Timage/Helper/Data.php b/app/code/community/Technooze/Timage/Helper/Data.php index 4aad656..d52222d 100755 --- a/app/code/community/Technooze/Timage/Helper/Data.php +++ b/app/code/community/Technooze/Timage/Helper/Data.php @@ -431,7 +431,7 @@ public function imagePath($img = '') Mage::helper('core/file_storage_database')->saveFileToFilesystem($this->img); } - if ((!file_exists($this->img) || !is_file($this->img)) && !empty($this->getPlaceholderFile())) { + if ((!file_exists($this->img) || !is_file($this->img)) && $this->getPlaceholderFile()) { $this->img = $this->getPlaceholderFile(); } } @@ -472,4 +472,4 @@ public function getOriginalHeight() { return $this->_getImageObj()->getOriginalHeight(); } -} \ No newline at end of file +}