diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index c9ad888816..e07efc8171 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -179,8 +179,7 @@ function return_single($id = '') { - $this->db->query("select * from phpgw_categories where cat_id='$id' and " - . "cat_appname='" . $this->app_name . "'",__LINE__,__FILE__); + $this->db->query("select * from phpgw_categories where cat_id='$id'",__LINE__,__FILE__); if ($this->db->next_record()) {