From 70b725dd7180e0b5831a5987f5c21d649c4157ac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 2 Dec 2013 23:11:32 +0100 Subject: [PATCH] Filter results by active package update server ids --- .../files/lib/data/package/update/PackageUpdateAction.class.php | 2 ++ 1 file changed, 2 insertions(+) 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'].'%')); } -- 2.20.1