From 8ea71d2f7d0e7dca3bac0daf43383f77a84341c4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 30 Aug 2003 10:25:14 +0000 Subject: [PATCH] fixed bug with not saved description in preferences::add --- phpgwapi/inc/class.categories.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index f4212c8795..72cdcaa5f9 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -561,8 +561,8 @@ $values['level'] = $this->id2name($values['parent'],'level')+1; } - $cat_values['descr'] = $this->db->db_addslashes($cat_values['descr']); - $cat_values['name'] = $this->db->db_addslashes($cat_values['name']); + $values['descr'] = $this->db->db_addslashes($values['descr']); + $values['name'] = $this->db->db_addslashes($values['name']); if ($values['id'] > 0) { @@ -572,8 +572,8 @@ $this->db->query('INSERT INTO phpgw_categories (' . $id_col . 'cat_parent,cat_owner,cat_access,cat_appname,cat_name,cat_description,cat_data,' . 'cat_main,cat_level, last_mod) VALUES (' . $id_val . intval($values['parent']) . ',' . $this->account_id . ",'" . $values['access'] - . "','" . $this->app_name . "','" . $values['name'] . "','" . $cat_values['descr'] . "','" . $values['data'] - . "'," . intval($cat_values['main']) . ',' . intval($values['level']) . ',' . time() . ')',__LINE__,__FILE__); + . "','" . $this->app_name . "','" . $values['name'] . "','" . $values['descr'] . "','" . $values['data'] + . "'," . intval($values['main']) . ',' . intval($values['level']) . ',' . time() . ')',__LINE__,__FILE__); if ($values['id'] > 0) {