diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 8edac690af..f7134897a7 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -128,6 +128,7 @@ { $cats[$i]['id'] = $this->db->f('cat_id'); $cats[$i]['owner'] = $this->db->f('cat_owner'); + $cats[$i]['access'] = $this->db->f('cat_access'); $cats[$i]['app_name'] = $this->db->f('cat_appname'); $cats[$i]['parent'] = $this->db->f('cat_parent'); $cats[$i]['name'] = $this->db->f('cat_name'); @@ -153,6 +154,7 @@ while ($this->db->next_record()) { $cats[0]['id'] = $this->db->f('cat_id'); $cats[0]['owner'] = $this->db->f('cat_owner'); + $cats[0]['access'] = $this->db->f('cat_access'); $cats[0]['parent'] = $this->db->f('cat_parent'); $cats[0]['name'] = $this->db->f('cat_name'); $cats[0]['description'] = $this->db->f('cat_description'); @@ -205,17 +207,16 @@ if ($format == 'select') { - $this->db->query("select * from phpgw_categories where cat_appname='" . $this->app_name - . "' $public_cats $filter",__LINE__,__FILE__); - while ($this->db->next_record()) + $list = $this->return_array($type,$start,$limit,$query,$sort,$order,$public); + while (list($cats) = each($list)) { - $s .= '