From 1f7b3ab4dd733facc6fa039a67f0371e6620dccd Mon Sep 17 00:00:00 2001 From: Spomsoree Date: Fri, 18 Dec 2020 14:01:27 +0100 Subject: [PATCH] Fixed a bug where the 404 page did throw an array offset error [HRCONNECTUM-116] --- src/Frontend/LocalizedFrontend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Frontend/LocalizedFrontend.php b/src/Frontend/LocalizedFrontend.php index b3b508e..a3a3dc5 100644 --- a/src/Frontend/LocalizedFrontend.php +++ b/src/Frontend/LocalizedFrontend.php @@ -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.");