From 1ce10adeb6b0803cef0a36d29130064c03bd3cea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Aug 2020 15:09:50 +0200 Subject: [PATCH] Remove support for filtering the results of PackageUpdateServer::getActiveUpdateServers() --- .../package/update/server/PackageUpdateServer.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index 2f831a75b3..96686c23cb 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -68,11 +68,12 @@ class PackageUpdateServer extends DatabaseObject { * @return PackageUpdateServer[] */ public static final function getActiveUpdateServers(array $packageUpdateServerIDs = []) { - $list = new PackageUpdateServerList(); - $list->getConditionBuilder()->add("isDisabled = ?", [0]); if (!empty($packageUpdateServerIDs)) { - $list->getConditionBuilder()->add("packageUpdateServerID IN (?)", [$packageUpdateServerIDs]); + throw new \InvalidArgumentException("Filtering package update servers by ID is no longer supported."); } + + $list = new PackageUpdateServerList(); + $list->getConditionBuilder()->add("isDisabled = ?", [0]); $list->readObjects(); if (ENABLE_ENTERPRISE_MODE) { -- 2.20.1