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

This commit is contained in:
Ralf Becker 2008-03-22 09:47:09 +00:00
parent 27dc53d63f
commit 8e83c8c883

View File

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