From 8e83c8c8831212172edfb0efe120f92b403af7cf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 22 Mar 2008 09:47:09 +0000 Subject: [PATCH] merged 24845 to 1.4: 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 --- 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 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