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

@ -564,7 +564,7 @@ switch ($action) {
break;
case 'note_refresh':
$acc_operation_note= Acc_Operation_Note::build_jrn_id($jr_id);
echo substr($acc_operation_note->getNote()??"",0,120);
echo mb_substr($acc_operation_note->getNote()??"",0,120);
return;
case "rmsup":