Skip to content

Commit

Permalink
[BUGFIX] Do not call getConflictingRedirects with null request
Browse files Browse the repository at this point in the history
Resolves: #100827
Releases: main, 12.4
Change-Id: I2c553894af4b25c2f4731782f0d9cf2293ec3211
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78985
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
  • Loading branch information
linawolf authored and sbuerk committed May 15, 2023
1 parent 1d5195c commit cf257b7
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -43,9 +43,7 @@ public function __construct(protected readonly BackendViewFactory $backendViewFa
*/
public function getStatus(ServerRequestInterface $request = null): array
{
return [
'Conflicts' => $this->getConflictingRedirects($request),
];
return $request !== null ? ['Conflicts' => $this->getConflictingRedirects($request)] : [];
}

public function getLabel(): string
Expand Down

0 comments on commit cf257b7

Please sign in to comment.