From: Alexander Ebert Date: Mon, 2 Dec 2013 22:11:32 +0000 (+0100) Subject: Filter results by active package update server ids X-Git-Tag: 2.0.0_RC_5~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70b725dd7180e0b5831a5987f5c21d649c4157ac;p=GitHub%2FWoltLab%2FWCF.git Filter results by active package update server ids --- diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php index 29e9baacb8..03e4cd8383 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php @@ -66,8 +66,10 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction { */ public function search() { PackageUpdateDispatcher::getInstance()->refreshPackageDatabase(); + $availableUpdateServers = PackageUpdateServer::getActiveUpdateServers(); $conditions = new PreparedStatementConditionBuilder(); + $conditions->add("package_update.packageUpdateServerID IN (?)", array(array_keys($availableUpdateServers))); if (!empty($this->parameters['package'])) { $conditions->add("package_update.package LIKE ?", array('%'.$this->parameters['package'].'%')); }