diff --git a/inc/upgrade.class.php b/inc/upgrade.class.php index 561eaacc..c88b32f9 100644 --- a/inc/upgrade.class.php +++ b/inc/upgrade.class.php @@ -114,7 +114,9 @@ class SP_Upgrade */ public static function needDBUpgrade($version) { - return (in_array($version, self::$dbUpgrade)); + $upgrades = array_filter(self::$dbUpgrade, function ($uVersions) use ($version){ return ($uVersions >= $version); } ); + + return (count($upgrades) > 0); } /** @@ -175,4 +177,4 @@ class SP_Upgrade return true; } -} \ No newline at end of file +}