From df0e553eee872d0df5aebdefed43d0f052c8b0e7 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Oct 2010 00:48:57 +0000 Subject: [PATCH] BUGFIX: tables and column quoted properly (from r101554) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112003 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/Member.php b/security/Member.php index d18cc9837..7985801a3 100755 --- a/security/Member.php +++ b/security/Member.php @@ -786,9 +786,9 @@ class Member extends DataObject { $columnsWithTablename[] = "$tableName.$column"; } - return "CONCAT(".join("'".self::$title_format['sep']."'", $columnsWithTablename).")"; + return "CONCAT(\"".join("'".self::$title_format['sep']."'", $columnsWithTablename)."\")"; } else { - return "CONCAT($tableName.Surname, ' ', $tableName.FirstName)"; + return "CONCAT(\"$tableName\".\"Surname\", ' ', \"$tableName\".\"FirstName\")"; } }