From d382db22b32394ec1e280ee2d7631e713bd3ab84 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 8 Sep 2023 15:25:08 +0200 Subject: [PATCH] Fix the check for installable packages when there are no packages See https://www.woltlab.com/community/thread/301509-fehler-beim-aufruf-der-lizenzen-im-acp/ --- wcfsetup/install/files/lib/acp/page/LicensePage.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php index 221127aef1..f8da6d9adf 100644 --- a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php @@ -273,6 +273,10 @@ final class LicensePage extends AbstractPage } } + if ($packageUpdates === []) { + return []; + } + // remove duplicates by picking either the lowest available version of a package // or the version exposed by trusted package servers $conditions = new PreparedStatementConditionBuilder(); -- 2.20.1