mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 19:43:50 +01:00
Do not fail when changing the mode of an layer (close #18).
This commit is contained in:
@@ -129,7 +129,7 @@ class Control
|
||||
$sorting = 0;
|
||||
|
||||
foreach ($new as $layer) {
|
||||
if (!isset($values[$layer['layer']]) || $values[$layer['layer']]['mode'] != $layer['mode']) {
|
||||
if (!isset($values[$layer['layer']])) {
|
||||
$this->database
|
||||
->prepare('INSERT INTO tl_leaflet_control_layer %s')
|
||||
->set(
|
||||
|
||||
Reference in New Issue
Block a user