fixed foreach for no extra_fields

This commit is contained in:
Ralf Becker 2004-03-06 20:34:56 +00:00
parent 345fd4de07
commit 809a2b8827

View File

@ -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='')