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.");