mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 12:05:58 +00:00
Merge 3d94e90a496282fdd202fda60180d5c13c6a2f0a into 3a3fd0236777f4156eaa9c13dbbeb4c3c6cedcad
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…
x
Reference in New Issue
Block a user