From: Alexander Ebert Date: Sat, 5 Nov 2011 01:27:27 +0000 (+0100) Subject: Properly validate if requirement is already met X-Git-Tag: 2.0.0_Beta_1~1616^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=639e325bc0ae5c4ca1cd78a6b896e18ef100ab93;p=GitHub%2FWoltLab%2FWCF.git Properly validate if requirement is already met --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index fcf72c44e7..954dfdb96b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -389,7 +389,8 @@ class PackageInstallationNodeBuilder { $packageNodes = array(); $queue = $this->installation->queue; - $requiredPackages = $this->installation->getArchive()->getRequirements(); + // handle requirements + $requiredPackages = $this->installation->getArchive()->getOpenRequirements(); foreach ($requiredPackages as $packageName => $package) { if (!isset($package['file'])) { // ignore requirements which are not to be installed