From: Stéphane Jacob Date: Thu, 30 Sep 2010 17:05:21 +0000 (+0200) Subject: Address countryId field should be null if no country was found. X-Git-Tag: xorg/1.0.1~130 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f2ac8f49be2c89380e8fdc28b0b1a02794271433;p=platal.git Address countryId field should be null if no country was found. Signed-off-by: Stéphane Jacob --- diff --git a/classes/address.php b/classes/address.php index 36eac5b..0eac92c 100644 --- a/classes/address.php +++ b/classes/address.php @@ -166,6 +166,9 @@ class Address $mailer->send(); } } + if ($this->countryId == '') { + $this->countryId = null; + } $this->geocodeChosen = null; $this->phones = Phone::formatFormArray($this->phones, $this->error); return !$this->error;