From 90e9e2a55157f0f1facb6e41aab5597f89d4590e Mon Sep 17 00:00:00 2001 From: tbaddade Date: Tue, 21 Jun 2022 17:06:51 +0200 Subject: [PATCH] getCurrentPageObject abfangen --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.php b/boot.php index b63cf36..75e1510 100644 --- a/boot.php +++ b/boot.php @@ -30,7 +30,7 @@ rex_extension::register('PAGES_PREPARED', static function() { - if (rex_be_controller::getCurrentPageObject()->hasLayout() && !rex_be_controller::getCurrentPageObject()->isPopup()) { + if (rex_be_controller::getCurrentPageObject() && rex_be_controller::getCurrentPageObject()->hasLayout() && !rex_be_controller::getCurrentPageObject()->isPopup()) { rex_extension::register('OUTPUT_FILTER', '\Watson\Foundation\Extension::agent'); } });