From 349bdec05d9be71148c8a93d7e172c38ed6a6e97 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Sun, 4 Aug 2024 10:55:39 +0200 Subject: [PATCH] fix cli error --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 6a13d6a..d435f87 100644 --- a/boot.php +++ b/boot.php @@ -88,7 +88,7 @@ static function ($a) { $addon = rex_addon::get('wildcard'); $page = $addon->getProperty('page'); - if (!rex::getConsole()) { + if (rex::isBackend() && !empty($_REQUEST)) { $_csrf_key = rex_yform_manager_table::get('rex_wildcard')->getCSRFKey(); $token = rex_csrf_token::factory($_csrf_key)->getUrlParams();