Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany committed Aug 19, 2023
1 parent 73398a4 commit f74e4ee
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ class Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Image extends Mage_Adminh

public function render(Varien_Object $row)
{
$result = '';

$image = $this->_checkImageIsSelected($row);
if ($image) {
$result = '';
$imageDimensions = $this->getColumn()->getWidth() ?: $this->_defaultWidth;

$imageSrc = $this->_getHelperImage($image)
Expand All @@ -39,7 +38,6 @@ public function render(Varien_Object $row)
$result .= '<a href="' . $imageUrl . '" title="' . basename($imageUrl) . '" target="_blank">';
$result .= '<img src="' . $imageSrc . '" alt="' . basename($imageUrl) . '" title="' . basename($imageUrl) . '" width="' . $imageWidth . '" height="' . $imageHeight . '"/>';

Check failure on line 39 in app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Image.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze

Undefined variable: $imageHeight

Check failure on line 39 in app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Image.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze

Undefined variable: $imageWidth
$result .= '</a>';

}/* else {
return '<img src="' . Mage::getStoreConfig('catalog/placeholder/image_placeholder') . ' " width="' . $imageWidth . '" height="' . $imageHeight . '" />';
} */
Expand Down

0 comments on commit f74e4ee

Please sign in to comment.