Filter results by active package update server ids
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 Dec 2013 22:11:32 +0000 (23:11 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 Dec 2013 22:11:32 +0000 (23:11 +0100)
wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php

index 29e9baacb895aceadd54cd4d6278a4f7a46dd045..03e4cd83838e6a204def983781f6ff1635904503 100644 (file)
@@ -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'].'%'));
                }