Once again, fixed query
authorAlexander Ebert <ebert@woltlab.com>
Sat, 5 Nov 2011 02:27:57 +0000 (03:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 5 Nov 2011 02:27:57 +0000 (03:27 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php

index 74460e45c3a4dc328624abfebeec5d8d6e80bab3..cfc07774f287c5cfd80bbfec4751aa8c736c7e3e 100644 (file)
@@ -560,9 +560,8 @@ class PackageInstallationNodeBuilder {
         */
        protected function buildChildQueues() {
                $queueList = new PackageInstallationQueueList();
-               $queueList->sqlJoins = "LEFT JOIN wcf".WCF_N."_package_installation_node package_installation_node ON (package_installation_node.queueID = package_installation_queue.queueID)";
                $queueList->getConditionBuilder()->add("package_installation_queue.parentQueueID = ?", array($this->installation->queue->queueID));
-               $queueList->getConditionBuilder()->add("package_installation_node.node IS NULL");
+               $queueList->getConditionBuilder()->add("package_installation_queue.queueID NOT IN (SELECT queueID FROM wcf".WCF_N."_package_installation_node)");
                $queueList->sqlLimit = 0;
                $queueList->readObjects();