From cc0349026ec301e13183e1db574356df80640086 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Mon, 11 Nov 2013 11:34:52 +1300 Subject: [PATCH] Removed unused variable --- code/model/Subsite.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/model/Subsite.php b/code/model/Subsite.php index 7eb1e741..898df8a0 100644 --- a/code/model/Subsite.php +++ b/code/model/Subsite.php @@ -413,12 +413,11 @@ static function getSubsiteIDForDomain($host = null, $checkPermissions = true) { if(isset(self::$_cache_subsite_for_domain[$cacheKey])) return self::$_cache_subsite_for_domain[$cacheKey]; $SQL_host = Convert::raw2sql($host); - $joinFilter = self::$check_is_public ? "AND \"Subsite\".\"IsPublic\"=1" : ''; $matchingDomains = DataObject::get( "SubsiteDomain", "'$SQL_host' LIKE replace(\"SubsiteDomain\".\"Domain\",'*','%')", "\"IsPrimary\" DESC" - )->innerJoin('Subsite', "\"Subsite\".\"ID\" = \"SubsiteDomain\".\"SubsiteID\" AND \"Subsite\".\"IsPublic\"=1");; + )->innerJoin('Subsite', "\"Subsite\".\"ID\" = \"SubsiteDomain\".\"SubsiteID\" AND \"Subsite\".\"IsPublic\"=1"); if($matchingDomains && $matchingDomains->Count()) { $subsiteIDs = array_unique($matchingDomains->column('SubsiteID'));