From: Alexander Ebert Date: Tue, 20 Jan 2015 11:20:44 +0000 (+0100) Subject: Ignoring disabled update servers when searching for installable packages X-Git-Tag: 2.0.10_pl_1~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f72bfb6a04e73a92d0b9b11c4ce5004e3956109;p=GitHub%2FWoltLab%2FWCF.git Ignoring disabled update servers when searching for installable packages --- diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 0f33ee1e09..b8dd012c6b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -724,11 +724,13 @@ class PackageUpdateDispatcher extends SingletonFactory { LEFT JOIN wcf".WCF_N."_package_update_server pus ON (pus.packageUpdateServerID = pu.packageUpdateServerID) WHERE pu.package = ? - AND puv.packageVersion = ?"; + AND puv.packageVersion = ? + AND pus.isDisabled = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $package, - $version + $version, + 0 )); while ($row = $statement->fetchArray()) { $versions[] = $row;