PackageUpdateDispatcher::getAvailableUpdates(): removing unused
authorDaniel Rudolf <git@phrozenbyte.de>
Sun, 17 Jul 2011 01:40:33 +0000 (03:40 +0200)
committerDaniel Rudolf <git@phrozenbyte.de>
Sun, 17 Jul 2011 01:40:33 +0000 (03:40 +0200)
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index e40dd08460263cf2e4dfbd8af5678bfd499088cf..4a065bdfe54548eb8aeeae08cfd0038600d200c5 100644 (file)
@@ -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();