X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Faddress.php;h=0eac92c146cead97976a6f0cfbbe83aa728cbee4;hb=12ddbc2037b16496dfb9d91c4f7091850146fcde;hp=36eac5b61373382f3a832c36e9b8019f898badda;hpb=622e7063c7501ec629ee624e0ac4be1dc29bdeb3;p=platal.git 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;