diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2db0ac1fe29..68d80576892 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -715,6 +715,8 @@ function dol_bc($var,$moreclass='') */ function dol_format_address($object,$withcountry=0,$sep="\n") { + global $conf; + $ret=''; $countriesusingstate=array('AU','US','IN','GB','ES','UK','TR');