Commit e2c97181c21a5f7bdc31dd6a41fa7381d7ea971c
1 parent
46b85244
Exists in
master
and in
7 other branches
Correção na definição da variável $interfacePadrao quando esta não estiver defin…
…ida em ms_configura.php
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
ms_criamapa.php
@@ -344,8 +344,12 @@ if (!isset ($map_reference_image)) //arquivo com a imagem de referência | @@ -344,8 +344,12 @@ if (!isset ($map_reference_image)) //arquivo com a imagem de referência | ||
344 | {$map_reference_image = $map->reference->image;} | 344 | {$map_reference_image = $map->reference->image;} |
345 | if (!isset ($map_reference_extent)) //extensão geográfica da imagem do mapa de referência | 345 | if (!isset ($map_reference_extent)) //extensão geográfica da imagem do mapa de referência |
346 | {$map_reference_extent = $map->reference->extent->minx." ".$map->reference->extent->miny." ".$map->reference->extent->maxx." ".$map->reference->extent->maxy;} | 346 | {$map_reference_extent = $map->reference->extent->minx." ".$map->reference->extent->miny." ".$map->reference->extent->maxx." ".$map->reference->extent->maxy;} |
347 | -if (!isset($interface)) | ||
348 | -{$interface = $interfacePadrao;} | 347 | +if(!isset($interface)) |
348 | +{ | ||
349 | + if(!isset($interfacePadrao)) | ||
350 | + {$interfacePadrao = "geral.htm";} | ||
351 | + $interface = $interfacePadrao; | ||
352 | +} | ||
349 | 353 | ||
350 | incluiTemasIniciais(); | 354 | incluiTemasIniciais(); |
351 | 355 |