diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 23f210649c..ca4d764ff7 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -607,9 +607,10 @@ * - cat's of other user * * @param string $cat_name cat-name + * @param boolean $strip=false if true, strips 'X-' from category names added by some SyncML clients * @return int cat-id or 0 if not found */ - function name2id($cat_name,$strip) + function name2id($cat_name,$strip=false) { static $cache = array(); // a litle bit of caching