From 804fd8619a234fa315d4b048391df08c56d0e624 Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Mon, 27 Feb 2023 17:56:08 +0100 Subject: [PATCH] CS --- boot.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot.php b/boot.php index d372ca03..8a51219c 100644 --- a/boot.php +++ b/boot.php @@ -29,6 +29,10 @@ rex_extension::register('PAGE_CHECKED', static function (rex_extension_point $ep) { $page = rex_be_controller::getPageObject('yform'); + if (!$page) { + return; + } + $subpages = $page->getSubpages(); if (isset($subpages['manager']) && rex::getUser()->isAdmin()) { $manager = $subpages['manager'];