From 89b98373d81f4232b98ca1c6a282dc1b8770075d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 20 May 2013 10:50:50 +0200 Subject: [PATCH] Fixes PackageArchive::getConflictedExcludedPackages() --- .../files/lib/system/package/PackageArchive.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index c0c674f59a..639c1f829b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -783,8 +783,13 @@ class PackageArchive { public function getConflictedExcludedPackages() { $conflictedPackages = array(); if (!empty($this->excludedPackages)) { + $excludedPackages = array(); + foreach ($this->excludedPackages as $excludedPackageData) { + $excludedPackages[] = $excludedPackageData['name']; + } + $conditions = new PreparedStatementConditionBuilder(); - $conditions->add("package IN (?)", array(array_keys($this->excludedPackages))); + $conditions->add("package IN (?)", array($excludedPackages)); $sql = "SELECT * FROM wcf".WCF_N."_package -- 2.20.1