From: Alexander Ebert Date: Thu, 19 Feb 2015 09:42:41 +0000 (+0100) Subject: Fixed version comparison failing when comparing Beta and RC versions X-Git-Tag: 2.0.11~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c0fee1461aae0774179b3dc1eb0527a7fc243f4;p=GitHub%2FWoltLab%2FWCF.git Fixed version comparison failing when comparing Beta and RC versions --- diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index b8dd012c6b..f280d3998e 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -643,7 +643,7 @@ class PackageUpdateDispatcher extends SingletonFactory { if (preg_match('~^(\d+\.\d+)\.~', $versionNumber, $matches)) { $major = $matches[1]; if (isset($highestVersions[$major])) { - if (version_compare($highestVersions[$major], $versionNumber, '<')) { + if (Package::compareVersion($highestVersions[$major], $versionNumber, '<')) { // version is newer, discard current version unset($updateData['versions'][$highestVersions[$major]]); $highestVersions[$major] = $versionNumber;