From b3f40cdff8383056233a9fa0d85c1106d8a748c2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Dec 2007 19:13:55 +0000 Subject: [PATCH] "added missing default for new $strip parameter of categories::name2id() added by Patric, to be compatible with the current code not giving that parameter and generating warnings because of that Thanks to regime2000-at-gmx.de from the German list." --- phpgwapi/inc/class.categories.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index c60d4e63fb..bffc2cfe06 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -603,9 +603,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