diff --git a/boot.php b/boot.php index 06b1e3f..1d22c6e 100644 --- a/boot.php +++ b/boot.php @@ -53,7 +53,7 @@ static function ($a) { $addon = rex_addon::get('qanda'); $pages = $addon->getProperty('pages'); - if (!rex::getConsole()) { + if (rex::isBackend() && !empty($_REQUEST)) { $_csrf_key = rex_yform_manager_table::get('rex_qanda')->getCSRFKey(); $token = rex_csrf_token::factory($_csrf_key)->getUrlParams();