From: Tim Düsterhus Date: Fri, 27 May 2022 12:21:03 +0000 (+0200) Subject: Use INNER JOIN in RoutingCacheBuilder::getCustomUrls() X-Git-Tag: 6.0.0_Alpha_1~1248 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07b8a38b2958bb8afff5db4a3e32b76311decc54;p=GitHub%2FWoltLab%2FWCF.git Use INNER JOIN in RoutingCacheBuilder::getCustomUrls() The FOREIGN KEY guarantees that the row in wcf1_page exists. --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php index 49026d194f..24255f66c1 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -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();