Skip to content

Commit

Permalink
Fixed a bug where the 404 page did throw an array offset error [HRCON…
Browse files Browse the repository at this point in the history
…NECTUM-116]
  • Loading branch information
Spomsoree committed Dec 18, 2020
1 parent 226a391 commit 1f7b3ab
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 1f7b3ab

Please sign in to comment.