From: Stéphane Jacob Date: Mon, 29 Nov 2010 15:32:18 +0000 (+0100) Subject: Fixes unset viriables warnings. X-Git-Tag: xorg/1.0.2~115 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9783cb98a2f4ab1a11f127946ddababbaf860e67;p=platal.git Fixes unset viriables warnings. Signed-off-by: Stéphane Jacob --- diff --git a/classes/address.php b/classes/address.php index 81a5213..cbdc34e 100644 --- a/classes/address.php +++ b/classes/address.php @@ -191,6 +191,10 @@ class Address $format['requireGeocoding'] = false; $format['stripGeocoding'] = false; $format['postalText'] = false; + } else { + foreach (array('requireGeocoding', 'stripGeocoding', 'postalText') as $type) { + $format[$type] = (isset($format[$type])) ? $format[$type] : false; + } } $this->text = trim($this->text); if ($this->removed == 1) {