Commit cb52cc2fb9dd058796de24161083aff732eb88e4

Authored by Edmar Moretti
1 parent 2d45b4f3

Inclusão de critica na verificação de existência de layer nas operações de ligar e desligar um tema

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
classesphp/classe_mapa.php
... ... @@ -908,6 +908,7 @@ $desligar - lista separada por vírgula dos temas que serão desligados. Se for ig
908 908 foreach ($ls as $l)
909 909 {
910 910 $l = $this->mapa->getlayerbyname($l);
  911 + if($l)
911 912 $l->set("status",2);
912 913 }
913 914 }
... ... @@ -927,6 +928,7 @@ $desligar - lista separada por vírgula dos temas que serão desligados. Se for ig
927 928 foreach ($ls as $l)
928 929 {
929 930 $l = $this->mapa->getlayerbyname($l);
  931 + if($l)
930 932 $l->set("status",0);
931 933 }
932 934 }
... ...