Use INNER JOIN in RoutingCacheBuilder::getCustomUrls()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 12:21:03 +0000 (14:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 12:21:03 +0000 (14:21 +0200)
The FOREIGN KEY guarantees that the row in wcf1_page exists.

wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 49026d194f180c23117c0874720e15fd97e81daa..24255f66c167ea2a8bb725c2f784f7c8152c01ed 100644 (file)
@@ -257,7 +257,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder
                             page_content.languageID,
                             page.applicationPackageID
                 FROM        wcf1_page_content page_content
-                LEFT JOIN   wcf1_page page
+                INNER JOIN  wcf1_page page
                 ON          page.pageID = page_content.pageID";
         $statement = WCF::getDB()->prepare($sql);
         $statement->execute();