Skip to content

Commit 13e8884

Browse files
committed
NGSTACK-843: fix resolving Content IDs
1 parent 4109f7d commit 13e8884

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundle/Command/IndexPagesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7373
*/
7474
private function indexContent(OutputInterface $output, InputInterface $input, array $siteConfig): void
7575
{
76-
$contentIds = explode(',', $input->getOption('content-ids'));
76+
$contentIdInput = $input->getOption('content-ids');
77+
$contentIds = $contentIdInput === null ? [] : explode(',', $input->getOption('content-ids'));
7778

7879
$allowedContentTypes = $siteConfig['allowed_content_types'];
7980
$offset = 0;

0 commit comments

Comments
 (0)