From f9845317424f95d334f6ed797bec91ced90dc068 Mon Sep 17 00:00:00 2001 From: Jan Malte Gerth Date: Tue, 27 May 2014 13:57:41 +0200 Subject: [PATCH] fixed failing testing for successful json_decode --- Mage/Command/BuiltIn/UpgradeCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}