Fix a crash when champ carte has no options
This commit is contained in:
parent
e159c1fc0c
commit
082b4830f3
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Champs::CarteChamp < Champ
|
|||
end
|
||||
|
||||
def layer_enabled?(layer)
|
||||
type_de_champ.options[layer] && type_de_champ.options[layer] != '0'
|
||||
type_de_champ.options && type_de_champ.options[layer] && type_de_champ.options[layer] != '0'
|
||||
end
|
||||
|
||||
def cadastres?
|
||||
|
|
Loading…
Reference in a new issue