From 9783cb98a2f4ab1a11f127946ddababbaf860e67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 29 Nov 2010 16:32:18 +0100 Subject: [PATCH] Fixes unset viriables warnings. 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, 4 insertions(+) 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) { -- 2.1.4