Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 11, 2024
1 parent ef45783 commit a327d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4369,7 +4369,7 @@ function dol_substr($string, $start, $length = null, $stringencoding = '', $trun
global $langs;

if (empty($stringencoding)) {
$stringencoding = $langs->charset_output;
$stringencoding = (empty($langs) ? 'UTF-8' : $langs->charset_output);
}

$ret = '';
Expand Down

0 comments on commit a327d39

Please sign in to comment.