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 b3d5255 commit 0a6156fCopy full SHA for 0a6156f
app/code/Magento/MediaGalleryUi/Setup/Patch/Data/AddMediaGalleryPermissions.php
@@ -47,7 +47,11 @@ public function apply(): void
47
->from($tableName, ['role_id'])
48
->where('resource_id = "Magento_Cms::media_gallery"');
49
50
- $connection->insertMultiple($tableName, $this->getInsertData($connection->fetchCol($select)));
+ $insertData = $this->getInsertData($connection->fetchCol($select));
51
+
52
+ if (!empty($insertData)) {
53
+ $connection->insertMultiple($tableName, $insertData);
54
+ }
55
}
56
57
/**
0 commit comments