mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
Merge 3d94e90a49
into 3a3fd02367
This commit is contained in:
commit
38fb0f86cb
@ -126,7 +126,7 @@ class XMLDataFormatter extends DataFormatter
|
||||
continue;
|
||||
}
|
||||
$fieldValue = $obj->obj($fieldName)->forTemplate();
|
||||
if (!mb_check_encoding($fieldValue, 'utf-8')) {
|
||||
if (isset($fieldValue) && !mb_check_encoding($fieldValue, 'utf-8')) {
|
||||
$fieldValue = "(data is badly encoded)";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user