mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-15 20:05:18 +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;
|
$sorting = 0;
|
||||||
|
|
||||||
foreach ($new as $layer) {
|
foreach ($new as $layer) {
|
||||||
if (!isset($values[$layer['layer']]) || $values[$layer['layer']]['mode'] != $layer['mode']) {
|
if (!isset($values[$layer['layer']])) {
|
||||||
$this->database
|
$this->database
|
||||||
->prepare('INSERT INTO tl_leaflet_control_layer %s')
|
->prepare('INSERT INTO tl_leaflet_control_layer %s')
|
||||||
->set(
|
->set(
|
||||||
|
|||||||
Reference in New Issue
Block a user