"replaced split with preg_split"

This commit is contained in:
Ralf Becker 2009-07-20 07:30:34 +00:00
parent 367d2b5ad6
commit ba346ab68b

View File

@ -63,11 +63,11 @@ while(($arg = array_shift($argv)))
case 'run':
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] == '-')
{
$config[$name] = array_diff($config['name'],split('[ ,]+',$value));
$config[$name] = array_diff($config['name'],preg_split('/[ ,]+/',$value));
}
else
{