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 294e791 + caa28d1 commit c97ec3e
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 c97ec3e

Please sign in to comment.