mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:52 +01:00
fix for creating valid sql
This commit is contained in:
parent
2a4b75c483
commit
d1ffe11af9
@ -140,7 +140,8 @@
|
|||||||
$groups = $this->get_location_list_for_id('phpgw_group', 1, $this->account_id);
|
$groups = $this->get_location_list_for_id('phpgw_group', 1, $this->account_id);
|
||||||
while($groups && list($key,$value) = each($groups))
|
while($groups && list($key,$value) = each($groups))
|
||||||
{
|
{
|
||||||
$sql .= ','.$value;
|
if($value != '')
|
||||||
|
$sql .= ','.$value;
|
||||||
}
|
}
|
||||||
$sql .= '))';
|
$sql .= '))';
|
||||||
$this->db->query($sql ,__LINE__,__FILE__);
|
$this->db->query($sql ,__LINE__,__FILE__);
|
||||||
|
Loading…
Reference in New Issue
Block a user