mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
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:
parent
27dc53d63f
commit
8e83c8c883
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user