forked from Wavyzz/dolibarr
Fix warning
This commit is contained in:
@@ -4369,7 +4369,7 @@ function dol_substr($string, $start, $length = null, $stringencoding = '', $trun
|
|||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
if (empty($stringencoding)) {
|
if (empty($stringencoding)) {
|
||||||
$stringencoding = $langs->charset_output;
|
$stringencoding = (empty($langs) ? 'UTF-8' : $langs->charset_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = '';
|
$ret = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user