From c4db9872c276bd38c14c5fcc6370b07f886833e3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 6 Nov 2005 09:09:05 +0000 Subject: [PATCH] it was definitly to late last night ;-) --- phpgwapi/inc/class.categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 55e83df2c8..badc51b7b3 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -317,7 +317,7 @@ * We use a shared cache together with id2name * * @param int $id id of category - * @return array with one array of cat-data + * @return array/boolean array with one array of cat-data or false if cat not found */ function return_single($id = '') { @@ -331,7 +331,7 @@ } $this->cache_id2cat_data[$id] = $cat; } - return $this->cache_id2cat_data[$id] ? array($cat) : false; + return $this->cache_id2cat_data[$id] ? array($this->cache_id2cat_data[$id]) : false; } /**