mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
fixed foreach for no extra_fields
This commit is contained in:
parent
345fd4de07
commit
809a2b8827
@ -706,6 +706,8 @@
|
|||||||
$this->db->query($sql="UPDATE $this->std_table SET $fields_s WHERE "
|
$this->db->query($sql="UPDATE $this->std_table SET $fields_s WHERE "
|
||||||
. "id=$id",__LINE__,__FILE__);
|
. "id=$id",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
if (is_array($extra_fields))
|
||||||
|
{
|
||||||
foreach($extra_fields as $x_name => $x_value)
|
foreach($extra_fields as $x_name => $x_value)
|
||||||
{
|
{
|
||||||
if ($this->field_exists($id,$x_name))
|
if ($this->field_exists($id,$x_name))
|
||||||
@ -727,6 +729,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Used by admin to change ownership on account delete */
|
/* Used by admin to change ownership on account delete */
|
||||||
function change_owner($old_owner='',$new_owner='')
|
function change_owner($old_owner='',$new_owner='')
|
||||||
|
Loading…
Reference in New Issue
Block a user