From c37ddedc555f5c0730d9d36b35556610053a37fb Mon Sep 17 00:00:00 2001 From: Eli Van Zoeren Date: Wed, 16 Nov 2016 11:57:01 -0500 Subject: [PATCH] Prevent syntax error in PHP 5.3 --- changelog.json | 8 ++++++++ vzaddress/VzAddressPlugin.php | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/changelog.json b/changelog.json index dcba02c..a13a107 100644 --- a/changelog.json +++ b/changelog.json @@ -1,4 +1,12 @@ [ + { + "version": "1.1.1", + "downloadUrl": "https://github.com/elivz/VzAddress-Craft/archive/1.1.1.zip", + "date": "2016-11-16T12:00:00+00:00", + "notes": [ + "[Fixed] Prevent syntax error in PHP 5.3." + ] + }, { "version": "1.1.0", "downloadUrl": "https://github.com/elivz/VzAddress-Craft/archive/1.1.0.zip", diff --git a/vzaddress/VzAddressPlugin.php b/vzaddress/VzAddressPlugin.php index 5e24f44..ff81ef3 100644 --- a/vzaddress/VzAddressPlugin.php +++ b/vzaddress/VzAddressPlugin.php @@ -11,7 +11,7 @@ public function getName() { } public function getVersion() { - return '1.1.0'; + return '1.1.1'; } public function getSchemaVersion() { @@ -44,7 +44,7 @@ public function registerImportOptionPaths() public function modifyImportRow($element, $map, $data) { $rowData = array_combine($map, $data); - $content = []; + $content = array(); foreach ($rowData as $key => $value) { if (preg_match('/^(.*)\[(.*)]$/', $key, $matches)) {