X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=628a9498a85e98b8df646ec50e823a6c5a9bbdfd;hb=0bcc8717002a2ab1b8531e1a78aa403132b0ecbc;hp=bb884dbd2f827d7d6391347ee5bd87b76263d09e;hpb=950a769bb3f3154de64960ffc5cac111263bc8b0;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index bb884db..628a949 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -267,13 +267,11 @@ abstract class ProfileGeocoding implements ProfileSetting $success = false; } } - if (isset($address['geoloc_choice'])) { - if ($address['geoloc_choice'] == 0) { - $mailer = new PlMailer('geoloc/geoloc.mail.tpl'); - $mailer->assign('text', $address['text']); - $mailer->assign('geoloc', $address['geoloc']); - $mailer->send(); - } + if (isset($address['geoloc_choice']) && ($address['geoloc_choice'] == 0)) { + $mailer = new PlMailer('geoloc/geoloc.mail.tpl'); + $mailer->assign('text', $address['text']); + $mailer->assign('geoloc', $address['geoloc']); + $mailer->send(); $gmapsGeocoder = new GMapsGeocoder(); $address = $gmapsGeocoder->stripGeocodingFromAddress($address); }