Skip to content

Commit

Permalink
getCurrentPageObject abfangen
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaddade committed Jun 21, 2022
1 parent b348e8b commit 90e9e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
Expand Down

0 comments on commit 90e9e2a

Please sign in to comment.