Adjusted comparison when installed version is higher
authorAlexander Ebert <ebert@woltlab.com>
Mon, 19 Mar 2018 15:54:15 +0000 (16:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 19 Mar 2018 15:54:15 +0000 (16:54 +0100)
wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php

index 6fd5ada864c8a9d5a8e0e2d0e6f43d25b2b834b4..e16be64da697ac0e4675f0a3c1d1a304613b868b 100644 (file)
@@ -111,7 +111,7 @@ class PluginStorePurchasedItemsPage extends AbstractPage {
                                if (Package::compareVersion($product['lastVersion'], $package->packageVersion, '>')) {
                                        $this->productData[$wcfMajorRelease][$packageUpdateID]['status'] = 'update';
                                }
-                               else if (Package::compareVersion($product['lastVersion'], $package->packageVersion, '=')) {
+                               else if (Package::compareVersion($product['lastVersion'], $package->packageVersion, '<=')) {
                                        $this->productData[$wcfMajorRelease][$packageUpdateID]['status'] = 'upToDate';
                                }
                        }