diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index e2301425d5..9c9c330663 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -219,7 +219,7 @@ $this->app_name = $app_name; $this->db = $phpgw->db; $this->db2 = $this->db; - $this->total_records = $this->db->num_rows(); + $this->total_records = $this->db2->num_rows(); $this->grants = $phpgw->acl->get_grants($app_name); $this->cats = $this->return_array($type,$start,$limit,$query,$sort,$order,$public); } @@ -286,28 +286,34 @@ $cats = $this->return_array($type,$start,False,$query,$sort,$order,$public); + $this->total_records = $this->db2->num_rows(); + $s = '
' . $image_set . ' | ' . "\n"; + $s .= '' . $space_set . '' . $phpgw->strip_html($cats[$i]['name']) + . ' | ' . "\n"; + $s .= '
' . $image_set . ' | ' . "\n"; - $s .= '' . $space_set . '' . $phpgw->strip_html($cats[$i]['name']) . ' | ' . "\n"; - $s .= '