From d8478a8f595a47f1faec3f19f6f1b0e08a2c15b9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:40:56 +0000 Subject: [PATCH] BUGFIX SQL Error is a member is not part of any groups (from r100053) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105548 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 76cfc0f92..2b4c3ba52 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1052,6 +1052,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid // Get the groups that the given member belongs to $groupIDs = DataObject::get_by_id('Member', $memberID)->Groups()->column("ID"); $SQL_groupList = implode(", ", $groupIDs); + if (!$SQL_groupList) $SQL_groupList = '0'; $combinedStageResult = array();