FIX: AJAX

This commit is contained in:
Tony Air 2024-03-24 22:33:48 +02:00
parent 0588e3a409
commit a6d9d432a6
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class AjaxControllerEx extends Extension
}
// render page
if (!self::isJson($body)) {
if ($body && !self::isJson($body)) {
$body = json_encode([
'ID' => $record->ID,
'Title' => $record->Title,