diff --git a/Mage/Command/BuiltIn/UpgradeCommand.php b/Mage/Command/BuiltIn/UpgradeCommand.php index 330f056..25907bc 100644 --- a/Mage/Command/BuiltIn/UpgradeCommand.php +++ b/Mage/Command/BuiltIn/UpgradeCommand.php @@ -54,7 +54,7 @@ class UpgradeCommand extends AbstractCommand // Check version $version = json_decode(file_get_contents(self::UPGRADE)); - if ($version !== false) { + if ($version !== false && $version !== null) { $versionCompare = version_compare(MAGALLANES_VERSION, $version->latest); if ($versionCompare == 0) { Console::output('SKIP', 0, 1); @@ -94,4 +94,4 @@ class UpgradeCommand extends AbstractCommand } } } -} \ No newline at end of file +}