Skip to content

Commit

Permalink
EZP-29504: Fix error when siteaccess is not set
Browse files Browse the repository at this point in the history
Fixes regression from #2418
  • Loading branch information
andrerom committed Sep 19, 2018
1 parent 806d52d commit 398a3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ private function fetchIteration(Statement $stmt, $iterationCount)
*/
private function getPhpProcess(array $contentIds, $commit)
{
$process = new ProcessBuilder([
$process = new ProcessBuilder(array_filter([
file_exists('bin/console') ? 'bin/console' : 'app/console',
$this->siteaccess ? '--siteaccess=' . $this->siteaccess : null,
'ezplatform:reindex',
'--content-ids=' . implode(',', $contentIds),
]);
]));
$process->setTimeout(null);
$process->setPrefix($this->getPhpPath());

Expand Down

0 comments on commit 398a3bc

Please sign in to comment.