From cda8181ed7a74a03f5a0f88293a569e133bdf583 Mon Sep 17 00:00:00 2001 From: bettina <bettina@alumni.egroupware.org> Date: Tue, 24 Apr 2001 03:26:04 +0000 Subject: [PATCH] update return_single() --- phpgwapi/inc/class.categories.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 738b330151..8d259154a1 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -167,7 +167,8 @@ $this->db->query("select * from phpgw_categories where cat_id='$id' and " . "cat_appname='" . $this->app_name . "'",__LINE__,__FILE__); - while ($this->db->next_record()) { + $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'); @@ -175,7 +176,7 @@ $cats[0]['name'] = $this->db->f('cat_name'); $cats[0]['description'] = $this->db->f('cat_description'); $cats[0]['data'] = $this->db->f('cat_data'); - } + return $cats; } /*!