FIX: PHP8.1

This commit is contained in:
Tony Air 2024-03-24 22:46:35 +02:00
parent a6d9d432a6
commit 141043d219
1 changed files with 4 additions and 2 deletions

View File

@ -207,9 +207,11 @@ class AjaxControllerEx extends Extension
$url = $req->getURL();
$url = $url === 'home' ? '/' : $url;
$ajax_res = $ctrl->config()->get('ajax_resources');
$graphql_res = $ctrl->config()->get('graphql_resources');
$resources = array_merge(
$ctrl->config()->get('graphql_resources'),
$ctrl->config()->get('ajax_resources')
$ajax_res ? $ajax_res : [],
$graphql_res ? $graphql_res : []
);
$body = $response->getBody();