*/
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();