Merge branch 'platal-1.0.0'
[platal.git] / classes / address.php
index 36eac5b..0eac92c 100644 (file)
@@ -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;