From ef7c988605b98c24f54a38dcafed372f4b7a2d3c Mon Sep 17 00:00:00 2001 From: jengo Date: Sat, 3 Feb 2001 06:55:22 +0000 Subject: [PATCH] Added returning a single category --- phpgwapi/inc/class.categories.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index c0984e68ad..aa5ef570d1 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -43,6 +43,9 @@ function return_array($type = "all") { $filter = $this->filter($type); + if (gettype($type) == "integer") { + $filter = " and cat_id='$type'"; + } $this->db->query("select * from phpgw_categories where cat_owner='" . $this->account_id . "' and cat_appname='"