mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
getFData : try to catch error casting data to string
This commit is contained in:
parent
30d51949cf
commit
1e37b2f870
1 changed files with 6 additions and 1 deletions
|
@ -168,7 +168,12 @@ function _getFData_extractAndModify($data,$ch) {
|
|||
$val=substr((string)$data,$s,$l);
|
||||
}
|
||||
else {
|
||||
$val=(string)$data;
|
||||
try {
|
||||
$val=strval($data);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$val=_('[not string value]');
|
||||
}
|
||||
}
|
||||
|
||||
# Without Accent
|
||||
|
|
Loading…
Reference in a new issue