From 57fb69f726f09e4bf49c600713521bb39c8e6aa4 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 17 Sep 2001 02:17:26 +0000 Subject: [PATCH] array element fix --- phpgwapi/inc/class.categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 3cec5c636d..5843c4db04 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -338,8 +338,8 @@ $cat_values['level'] = $this->id2name($cat_values['parent'],'level')+1; } - $cat_values[descr] = addslashes($cat_values['descr']); - $cat_values['name'] = addslashes($cat_values['name']); + $cat_values['descr'] = addslashes($cat_values['descr']); + $cat_values['name'] = addslashes($cat_values['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'] . "','"