Fixed subsite page selection when URL exists on SubsiteID = 0

This commit is contained in:
Sam Minnee 2007-08-29 06:03:57 +00:00
parent 538cfeda6a
commit 70ef6b0898

View File

@ -52,7 +52,7 @@ class SiteTreeSubsites extends DataObjectDecorator {
// The foreach is an ugly way of getting the first key :-) // The foreach is an ugly way of getting the first key :-)
foreach($query->from as $tableName => $info) { foreach($query->from as $tableName => $info) {
$query->where[] = "`$tableName`.SubsiteID IN (0, $subsiteID)"; $query->where[] = "`$tableName`.SubsiteID IN ($subsiteID)";
break; break;
} }
} }