FIX - php V8 pdf lib

This commit is contained in:
Anthony Berton
2022-07-28 17:09:56 +02:00
parent 517efeebd1
commit 915380202c

View File

@@ -453,7 +453,7 @@ function pdf_build_address($outputlangs, $sourcecompany, $targetcompany = '', $t
if (empty($reshook)) {
if ($mode == 'source') {
$withCountry = 0;
if (!empty($sourcecompany->country_code) && ($targetcompany->country_code != $sourcecompany->country_code)) {
if (isset($targetcompany->country_code) && !empty($sourcecompany->country_code) && ($targetcompany->country_code != $sourcecompany->country_code)) {
$withCountry = 1;
}