Skip to content

Commit

Permalink
CLOUDINARY-114: Applied fix-suggestion from Github PR#46
Browse files Browse the repository at this point in the history
  • Loading branch information
pini-girit committed Mar 17, 2019
1 parent 007c1a8 commit 62796fe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

class Cloudinary_Cloudinary_Model_Catalog_Product_Media extends Mage_Core_Model_Abstract
{

private $_newImages;

public function newImagesForProduct(Mage_Catalog_Model_Product $product)
{
$this->_setNewImages($product->getData('media_gallery'));
$this->_setNewImages((array)$product->getData('media_gallery'));
return $this->_getNewImages($product);
}

Expand Down Expand Up @@ -52,4 +51,4 @@ private function _isImageRemoved($toFilter)
{
return is_array($toFilter) && array_key_exists('removed', $toFilter) && $toFilter['removed'] === 1;
}
}
}

0 comments on commit 62796fe

Please sign in to comment.