mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
Merge 3d94e90a49
into de0f5e9ddd
This commit is contained in:
commit
a35cdbb7f3
@ -126,7 +126,7 @@ class XMLDataFormatter extends DataFormatter
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$fieldValue = $obj->obj($fieldName)->forTemplate();
|
$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)";
|
$fieldValue = "(data is badly encoded)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user