fix for creating valid sql

This commit is contained in:
Lars Kneschke 2003-09-21 19:43:29 +00:00
parent 2a4b75c483
commit d1ffe11af9

View File

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