Skip to content

Commit

Permalink
[BUGFIX] Check that array key is set before using (PHP 8.1) (#986)
Browse files Browse the repository at this point in the history
Resolved #984
  • Loading branch information
tomasnorre authored Nov 18, 2022
1 parent 5512d88 commit a59877d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog TYPO3 Crawler

## Crawler 11.0.7

### Fixed
* Ensure that array key is set before used in BuildQueueCommand (PHP 8.1)


## Crawler 11.0.6
Crawler 11.0.6 was released on November 12th, 2022

Expand Down
2 changes: 1 addition & 1 deletion Classes/Command/BuildQueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$progressBar->clear();
if (is_array($requestResult)) {
$resLog = is_array($requestResult['log']) ? PHP_EOL . chr(9) . chr(9) . implode(PHP_EOL . chr(9) . chr(9), $requestResult['log']) : '';
$resLog = array_key_exists('log', $requestResult) && is_array($requestResult['log']) ? PHP_EOL . chr(9) . chr(9) . implode(PHP_EOL . chr(9) . chr(9), $requestResult['log']) : '';
$output->writeln('<info>OK: ' . $resLog . '</info>' . PHP_EOL);
} else {
$output->writeln('<error>Error checking Crawler Result: ' . substr(preg_replace('/\s+/', ' ', strip_tags($resultContent)), 0, 30000) . '...' . PHP_EOL . '</error>' . PHP_EOL);
Expand Down

0 comments on commit a59877d

Please sign in to comment.