fixed not working --run -name or --run +name

This commit is contained in:
Ralf Becker 2009-07-21 06:30:40 +00:00
parent 7b6da8320a
commit b4b294b79a

View File

@ -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'],preg_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'],preg_split('/[ ,]+/',$value)); $config[$name] = array_diff($config[$name],preg_split('/[ ,]+/',$value));
} }
else else
{ {