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'] : []); } /**