From 34088528ea47aa343911b3ec9e767cf90926d747 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 12 Feb 2011 18:38:20 +0100 Subject: [PATCH] Fixes email notification when user chose the non-geocoded address. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/address.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/address.php b/classes/address.php index edd0874..8d1fa48 100644 --- a/classes/address.php +++ b/classes/address.php @@ -601,14 +601,14 @@ class Address $this->error = !empty($this->geocodedText); } if ($format['stripGeocoding'] || ($this->type == self::LINK_COMPANY && $this->error) || $this->geocodeChosen === '0') { - $gmapsGeocoder = new GMapsGeocoder(); - $gmapsGeocoder->stripGeocodingFromAddress($this); if ($this->geocodeChosen === '0') { $mailer = new PlMailer('profile/geocoding.mail.tpl'); $mailer->assign('text', $this->text); $mailer->assign('geoloc', $this->geocodedText); $mailer->send(); } + $gmapsGeocoder = new GMapsGeocoder(); + $gmapsGeocoder->stripGeocodingFromAddress($this); } if ($this->countryId == '') { $this->countryId = null; -- 2.1.4