"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."
This commit is contained in:
Ralf Becker 2007-12-20 19:13:55 +00:00
parent 71d98434fe
commit b3f40cdff8

View File

@ -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