Merge pull request #16753 from frederic34/patch-12

fix php8 warning
This commit is contained in:
Laurent Destailleur 2021-03-17 16:56:10 +01:00 committed by GitHub
commit 09f8ccd882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3391,7 +3391,7 @@ function dol_trunc($string, $size = 40, $trunc = 'right', $stringencoding = 'UTF
{
global $conf;
if ($size == 0 || !empty($conf->global->MAIN_DISABLE_TRUNC)) {
if (empty($size) || !empty($conf->global->MAIN_DISABLE_TRUNC)) {
return $string;
}