getFData : try to catch error casting data to string

This commit is contained in:
Benjamin Renard 2014-11-20 12:00:26 +01:00
parent 30d51949cf
commit 1e37b2f870

View file

@ -168,7 +168,12 @@ function _getFData_extractAndModify($data,$ch) {
$val=substr((string)$data,$s,$l); $val=substr((string)$data,$s,$l);
} }
else { else {
$val=(string)$data; try {
$val=strval($data);
}
catch (Exception $e) {
$val=_('[not string value]');
}
} }
# Without Accent # Without Accent