Skip to content

Commit

Permalink
fix cli error
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Aug 4, 2024
1 parent da85e14 commit 9581490
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 @@ -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();
Expand Down

0 comments on commit 9581490

Please sign in to comment.