From d1ffe11af998d9bc6a1cd23de2fcc1530ebc8c16 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sun, 21 Sep 2003 19:43:29 +0000 Subject: [PATCH] fix for creating valid sql --- phpgwapi/inc/class.acl.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index c1072c739c..159826a2f7 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -140,7 +140,8 @@ $groups = $this->get_location_list_for_id('phpgw_group', 1, $this->account_id); while($groups && list($key,$value) = each($groups)) { - $sql .= ','.$value; + if($value != '') + $sql .= ','.$value; } $sql .= '))'; $this->db->query($sql ,__LINE__,__FILE__);