Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
BUGFIX: wrong error code in Abstract Api Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ursulaklinger committed Apr 3, 2018
1 parent 41558b0 commit f6f4f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/AbstractApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function errorAction()
{
$error = $this->findFirstError($this->arguments->getValidationResults());

if ($error instanceof Error) {
if (!($error instanceof Error)) {
$error = new Error('Unknown Error while dispatching the controller action.', 1400683671);
}

Expand Down Expand Up @@ -115,4 +115,4 @@ protected function findFirstError(\TYPO3\CMS\Extbase\Error\Result $validationRes

return null;
}
}
}

0 comments on commit f6f4f3a

Please sign in to comment.