Skip to content
Snippets Groups Projects
Commit e4d28c81 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bad string

parent 3e3af877
Branches
No related tags found
No related merge requests found
...@@ -186,20 +186,22 @@ foreach ($argv as $key => $value) ...@@ -186,20 +186,22 @@ foreach ($argv as $key => $value)
if ($value == 'filter=excludethirdparties') if ($value == 'filter=excludethirdparties')
{ {
$found=true; $found=true;
$option.=(empty($option)?'':'_').'excludethirdparties'.explode('-',$argv[$key+1]);
$filter[]='excludethirdparties'; $filter[]='excludethirdparties';
$thirdpartiesid=explode(',',$argv[$key+1]); $thirdpartiesid=explode(',',$argv[$key+1]);
print 'Exclude thirdparties with id in list ('.join(',',$thirdpartiesid).").\n"; print 'Exclude thirdparties with id in list ('.join(',',$thirdpartiesid).").\n";
$option.=(empty($option)?'':'_').'excludethirdparties'.join('-',$thirdpartiesid);
} }
if ($value == 'filter=onlythirdparties') if ($value == 'filter=onlythirdparties')
{ {
$found=true; $found=true;
$option.=(empty($option)?'':'_').'onlythirdparty'.explode('-',$argv[$key+1]);
$filter[]='onlythirdparties'; $filter[]='onlythirdparties';
$thirdpartiesid=explode(',',$argv[$key+1]); $thirdpartiesid=explode(',',$argv[$key+1]);
print 'Only thirdparties with id in list ('.join(',',$thirdpartiesid).").\n"; print 'Only thirdparties with id in list ('.join(',',$thirdpartiesid).").\n";
$option.=(empty($option)?'':'_').'onlythirdparty'.join('-',$thirdpartiesid);
} }
if (! $found && preg_match('/filter=/i',$value)) if (! $found && preg_match('/filter=/i',$value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment