Fix : issue when using unicode with substr

This commit is contained in:
sparkyx 2026-02-26 08:42:35 +01:00
parent 545e41927b
commit 9347b18fa9
5 changed files with 6 additions and 5 deletions

View file

@ -62,7 +62,7 @@ global $g_parameter;
$i = 0;
foreach ($avail as $r) {
$array[$i]['value'] = $r['dos_id'];
$array[$i]['label'] = sprintf("%s %s (%s)",$r['dos_id'],$r['dos_name'],substr($r['dos_description']??"",0,50));
$array[$i]['label'] = sprintf("%s %s (%s)",$r['dos_id'],$r['dos_name'],mb_substr($r['dos_description']??"",0,50));
$i++;
}
$sAvail = new ISelect('dos_id');