From a1207e4b9451fde877da9170f5aa67efcb776b0a Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Mon, 31 Aug 2009 00:22:10 +0000 Subject: [PATCH] MINOR FIX: Column names quoted properly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@85419 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/RootURLController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control/RootURLController.php b/core/control/RootURLController.php index 20630c758..9e59de616 100755 --- a/core/control/RootURLController.php +++ b/core/control/RootURLController.php @@ -57,7 +57,7 @@ class RootURLController extends Controller { $host = str_replace('www.','',$host); $SQL_host = Convert::raw2sql($host); - $homePageOBJs = DataObject::get("SiteTree", "HomepageForDomain LIKE '%$SQL_host%'"); + $homePageOBJs = DataObject::get("SiteTree", "\"HomepageForDomain\" LIKE '%$SQL_host%'"); if($homePageOBJs) foreach($homePageOBJs as $candidateObj) { if(preg_match('/(,|^) *' . preg_quote($host) . ' *(,|$)/', $candidateObj->HomepageForDomain)) { $homePageOBJ = $candidateObj;