Skip to content

Commit 142795d

Browse files
authored
Merge pull request #212 from LulububuApps/bugfix/HRCONNECTUM-116-404-fix
Fixed a bug where the 404 page did throw an array offset error
2 parents 226a391 + 1f7b3ab commit 142795d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Frontend/LocalizedFrontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function record(Request $request, $contenttypeslug, $slug = '')
7979

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

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

0 commit comments

Comments
 (0)