diff --git a/lib/neues.php b/lib/neues.php index 2e2b9a3..0c04233 100644 --- a/lib/neues.php +++ b/lib/neues.php @@ -90,17 +90,20 @@ public static function htmlEncode(string $value): string */ public static function epPagesPrepared(rex_extension_point $ep): void { + $neues = rex_be_controller::getPageObject('neues'); + if (null === $neues) { + return; + } + $_csrf_key = Entry::table()->getCSRFKey(); $params = rex_csrf_token::factory($_csrf_key)->getUrlParams(); - $params['table_name'] = Entry::table()->getTableName(); // Tabellenname anpassen $params['rex_yform_manager_popup'] = '0'; $params['func'] = 'add'; $href = rex_url::backendPage('neues/entry', $params); - $neues = rex_be_controller::getPageObject('neues'); $neues->setTitle( $neues->getTitle() . ' +',