Skip to content

Commit

Permalink
Merge pull request #24 from chedaroo/master
Browse files Browse the repository at this point in the history
empty() passing value by reference error
  • Loading branch information
dbashyal committed Apr 13, 2016
2 parents 3e7af9f + cb05df9 commit c80a2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Technooze/Timage/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -472,4 +472,4 @@ public function getOriginalHeight()
{
return $this->_getImageObj()->getOriginalHeight();
}
}
}

0 comments on commit c80a2ec

Please sign in to comment.