Do not fail when changing the mode of an layer (close #18).

This commit is contained in:
David Molineus
2015-01-22 15:13:39 +01:00
parent f377b12998
commit 3853618f2f

View File

@@ -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(