Commit 2a27ac61aa5812aa7b0236c5e2500335fca4ab89
1 parent
20ae6d85
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
classesphp/mapa_controle.php
... | ... | @@ -2711,7 +2711,7 @@ function redesenhaMapa() |
2711 | 2711 | //na interface googlemaps não é necessário gerar a imagem |
2712 | 2712 | // |
2713 | 2713 | if (isset($interface) && ($interface == "googlemaps" || $interface == "openlayers")) |
2714 | - {$imagem = "var mapimagem='';var mapexten=''";} | |
2714 | + {$imagem = "var erro = '';var mapimagem='';var mapexten=''";} | |
2715 | 2715 | else{ |
2716 | 2716 | $imagem = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv); |
2717 | 2717 | if ($imagem == "erro") |
... | ... | @@ -2721,7 +2721,7 @@ function redesenhaMapa() |
2721 | 2721 | $m = New Mapa($map_file); |
2722 | 2722 | $par = $m->parametrosTemas(); |
2723 | 2723 | if (isset($utilizacgi) && strtolower($utilizacgi) == "sim") |
2724 | - {$imagem = "var mapimagem='".$locmapserv."?map=".$map_file."&mode=map&".nomeRandomico()."'";} | |
2724 | + {$imagem = "var erro = '';var mapimagem='".$locmapserv."?map=".$map_file."&mode=map&".nomeRandomico()."'";} | |
2725 | 2725 | else |
2726 | 2726 | {$imagem = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem);} |
2727 | 2727 | } |
... | ... | @@ -2732,7 +2732,7 @@ function redesenhaMapa() |
2732 | 2732 | if (($par == "") || ($imagem == "")) |
2733 | 2733 | {$retorno = "erro";} |
2734 | 2734 | else |
2735 | - {$retorno = array("variaveis"=>($mensagens.";".$imagem.";var tempo=".(microtime(1) - $tempo)),"temas"=>$par);} | |
2735 | + {$retorno = array("variaveis"=>($mensagens.";".$imagem.";var erro = '';var tempo=".(microtime(1) - $tempo)),"temas"=>$par);} | |
2736 | 2736 | cpjson($retorno); |
2737 | 2737 | } |
2738 | 2738 | ?> |
2739 | 2739 | \ No newline at end of file | ... | ... |