We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58088a1 commit 6706aa5Copy full SHA for 6706aa5
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php
@@ -123,7 +123,11 @@ public function getAddImagesButton()
123
public function getImagesJson()
124
{
125
$value = $this->getElement()->getImages();
126
- if (is_array($value) && is_array($value['images']) && count($value['images'])) {
+ if (is_array($value) &&
127
+ array_key_exists('images', $value) &&
128
+ is_array($value['images']) &&
129
+ count($value['images'])
130
+ ) {
131
$directory = $this->_filesystem->getDirectoryRead(DirectoryList::MEDIA);
132
$images = $this->sortImagesByPosition($value['images']);
133
foreach ($images as &$image) {
0 commit comments