Skip to content

Commit

Permalink
Fix issue 124
Browse files Browse the repository at this point in the history
Fix issue netzmacht#124
  • Loading branch information
zonky2 authored Jul 1, 2023
1 parent 2d47186 commit c59a31d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Frontend/Assets/LibrariesConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @package contao-leaflet-maps
* @author David Molineus <david.molineus@netzmacht.de>
* @author Sven Baumnn <baumann.sv@gmail.com>
* @copyright 2014-2022 netzmacht David Molineus. All rights reserved.
* @author Ingolf Steinhardt <info@e-spin.de>
* @copyright 2014-2023 netzmacht David Molineus. All rights reserved.
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
* @filesource
*/
Expand Down Expand Up @@ -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'] : []);
}

/**
Expand Down

0 comments on commit c59a31d

Please sign in to comment.