Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

class Cloudinary_Cloudinary_Model_Catalog_Product_Media extends Mage_Core_Model_Abstract
{

Expand Down Expand Up @@ -41,11 +41,11 @@ public function removedImagesForProduct(Mage_Catalog_Model_Product $product)

private function _getRemovedImages(array $mediaGallery)
{
return array_filter(json_decode($mediaGallery['images'], true), array($this, '_isImageRemoved'));
return array_filter($mediaGallery['images'], array($this, '_isImageRemoved'));
}

private function _isImageRemoved($toFilter)
{
return is_array($toFilter) && array_key_exists('removed', $toFilter) && $toFilter['removed'] === 1;
}
}
}