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__);