mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
"replaced split with preg_split"
This commit is contained in:
parent
367d2b5ad6
commit
ba346ab68b
@ -63,11 +63,11 @@ while(($arg = array_shift($argv)))
|
|||||||
case 'run':
|
case 'run':
|
||||||
if ($value[0] == '+')
|
if ($value[0] == '+')
|
||||||
{
|
{
|
||||||
$config[$name] = array_unique(array_merge($config['name'],split('[ ,]+',$value)));
|
$config[$name] = array_unique(array_merge($config['name'],preg_split('/[ ,]+/',$value)));
|
||||||
}
|
}
|
||||||
elseif ($value[0] == '-')
|
elseif ($value[0] == '-')
|
||||||
{
|
{
|
||||||
$config[$name] = array_diff($config['name'],split('[ ,]+',$value));
|
$config[$name] = array_diff($config['name'],preg_split('/[ ,]+/',$value));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user