diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 6445427521..88c8edba44 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -48,12 +48,12 @@ $filter = " and cat_id='$id'"; } - $this->db->query("select * from phpgw_categories where cat_owner='" - . $this->account_id . "' and cat_appname='" + $this->db->query("select * from phpgw_categories where cat_appname='" . $this->app_name . "' $filter",__LINE__,__FILE__); $i = 0; while ($this->db->next_record()) { $cats[$i]['id'] = $this->db->f('cat_id'); + $cats[$i]['owner'] = $this->db->f('cat_owner'); $cats[$i]['parent'] = $this->db->f('cat_parent'); $cats[$i]['name'] = $this->db->f('cat_name'); $cats[$i]['description'] = $this->db->f('cat_description'); @@ -87,7 +87,7 @@ $filter = $this->filter($type); if ($format == 'select') { - $this->db->query("select * from phpgw_categories where cat_owner='" . $this->account_id + $this->db->query("select * from phpgw_categories where cat_appname='" . $this->app_name . "' $filter",__LINE__,__FILE__); while ($this->db->next_record()) { $s .= '