Skip to content

Commit

Permalink
Merge pull request #212 from LulububuApps/bugfix/HRCONNECTUM-116-404-fix
Browse files Browse the repository at this point in the history
Fixed a bug where the 404 page did throw an array offset error
  • Loading branch information
bobdenotter authored Dec 19, 2020
2 parents 226a391 + 1f7b3ab commit 142795d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Frontend/LocalizedFrontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function record(Request $request, $contenttypeslug, $slug = '')

$result = $qb->execute()->fetch();

if ($result['slug'] !== null) {
if ($result && $result['slug'] !== null) {
return parent::record($request, $contenttypeslug, $result['slug']);
} else {
$this->abort(Response::HTTP_NOT_FOUND, "Page $contenttypeslug/$slug not found.");
Expand Down

0 comments on commit 142795d

Please sign in to comment.