From c59a31d95fa3a5b0d626a4b642b5f2427fc318a8 Mon Sep 17 00:00:00 2001 From: zonky2 Date: Sat, 1 Jul 2023 15:49:03 +0200 Subject: [PATCH] Fix issue 124 Fix issue #124 --- src/Frontend/Assets/LibrariesConfiguration.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Frontend/Assets/LibrariesConfiguration.php b/src/Frontend/Assets/LibrariesConfiguration.php index c095c32..7d96ed4 100644 --- a/src/Frontend/Assets/LibrariesConfiguration.php +++ b/src/Frontend/Assets/LibrariesConfiguration.php @@ -6,7 +6,8 @@ * @package contao-leaflet-maps * @author David Molineus * @author Sven Baumnn - * @copyright 2014-2022 netzmacht David Molineus. All rights reserved. + * @author Ingolf Steinhardt + * @copyright 2014-2023 netzmacht David Molineus. All rights reserved. * @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE * @filesource */ @@ -51,7 +52,7 @@ public function getIterator(): Traversable { $this->framework->initialize(); - return new \ArrayIterator($GLOBALS['LEAFLET_LIBRARIES']); + return new \ArrayIterator(isset($GLOBALS['LEAFLET_LIBRARIES']) ? $GLOBALS['LEAFLET_LIBRARIES'] : []); } /**