From c98f3e76100df9c00d4f7079a1c70ecfeedde66c Mon Sep 17 00:00:00 2001 From: CoalaWeb Date: Mon, 19 Jun 2017 10:23:20 -0400 Subject: [PATCH] Ensures $xml_items is always an array before it's treated as such. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes PHP 7.1 warnings regarding “Illegal string offset” and “Cannot assign an empty string”. --- helpers/phocacommander.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/phocacommander.php b/helpers/phocacommander.php index 9ec4c8a..45cfd00 100644 --- a/helpers/phocacommander.php +++ b/helpers/phocacommander.php @@ -46,7 +46,7 @@ public static function getExtensionVersion($c = 'phocacommander') { } } - $xml_items = ''; + $xml_items = array(); if (count($xmlFilesInDir)) { foreach ($xmlFilesInDir as $xmlfile) @@ -345,4 +345,4 @@ public static function getMimeTypeString($params) { return $string; } } -?> \ No newline at end of file +?>