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 d6f3c21 commit 2aff5a6Copy full SHA for 2aff5a6
app/code/Magento/Catalog/Setup/UpgradeData.php
@@ -39,7 +39,8 @@ public function __construct(CategorySetupFactory $categorySetupFactory)
39
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
40
{
41
$setup->startSetup();
42
- if (version_compare($context->getVersion(), '2.0.1') < 0) {
+ if ($context->getVersion() && version_compare($context->getVersion(), '2.0.1') < 0) {
43
+
44
/** @var \Magento\Catalog\Setup\CategorySetup $categorySetup */
45
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
46
0 commit comments