diff --git a/app/Traits/Contacts.php b/app/Traits/Contacts.php index f867c1e96..df748c8eb 100644 --- a/app/Traits/Contacts.php +++ b/app/Traits/Contacts.php @@ -79,6 +79,14 @@ trait Contacts public function getFormattedAddress($city = null, $country = null, $state = null, $zip_code = null) { + if (is_null($city) + && is_null($country) + && is_null($state) + && is_null($zip_code) + ) { + return null; + } + $address_format = setting('default.address_format'); $formatted_address = str_replace(