array element fix

This commit is contained in:
Miles Lott 2001-09-17 02:17:26 +00:00
parent 173d81ab87
commit 57fb69f726

View File

@ -338,8 +338,8 @@
$cat_values['level'] = $this->id2name($cat_values['parent'],'level')+1; $cat_values['level'] = $this->id2name($cat_values['parent'],'level')+1;
} }
$cat_values[descr] = addslashes($cat_values['descr']); $cat_values['descr'] = addslashes($cat_values['descr']);
$cat_values['name'] = addslashes($cat_values['name']); $cat_values['name'] = addslashes($cat_values['name']);
$this->db->query("insert into phpgw_categories (cat_parent,cat_owner,cat_access,cat_appname,cat_name," $this->db->query("insert into phpgw_categories (cat_parent,cat_owner,cat_access,cat_appname,cat_name,"
. "cat_description,cat_data,cat_main,cat_level) values ('" . $cat_values['parent'] . "','" . $this->account_id . "','" . $cat_values['access'] . "','" . "cat_description,cat_data,cat_main,cat_level) values ('" . $cat_values['parent'] . "','" . $this->account_id . "','" . $cat_values['access'] . "','"