From 8d62fbf1aa2223c3032c77db42da9363ea102ff0 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 18 Aug 2008 00:51:55 +0000 Subject: [PATCH] Fixed bug in Member::mapInCMSGroups() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60912 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Member.php b/security/Member.php index 8ecba7a27..23de804ad 100644 --- a/security/Member.php +++ b/security/Member.php @@ -834,7 +834,7 @@ class Member extends DataObject { $perms = array_unique(array_merge($perms, array_keys($cmsPerms))); } - $SQL_perms = "'" . array_join(Convert::raw2sql($perms), "', '") . "'"; + $SQL_perms = "'" . implode("', '", Convert::raw2sql($perms)) . "'"; $groups = DataObject::get('Group', "", "", "INNER JOIN `Permission` ON `Permission`.GroupID = `Group`.ID AND `Permission`.Code IN ($SQL_perms)");