From: Daniel Rudolf Date: Sun, 17 Jul 2011 01:40:33 +0000 (+0200) Subject: PackageUpdateDispatcher::getAvailableUpdates(): removing unused X-Git-Tag: 2.0.0_Beta_1~1973^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f92aaf6a3b4f03b3d0697d78d3b1ba054b410ce5;p=GitHub%2FWoltLab%2FWCF.git PackageUpdateDispatcher::getAvailableUpdates(): removing unused --- diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index e40dd08460..4a065bdfe5 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -583,8 +583,7 @@ abstract class PackageUpdateDispatcher { while ($row = $statement->fetchArray()) { $existingPackages[$row['package']][] = $row; } - $existingPackageIdentifiers = implode("','", array_keys($existingPackages)); - if (empty($existingPackageIdentifiers)) return $updates; + if (empty($existingPackages)) return $updates; // get all update versions $conditions = new PreparedStatementConditionBuilder();