Commit d7c7debbac57f3c1140b4864897428882c3ad755
1 parent
3e3784ce
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
10 additions
and
4 deletions
Show diff stats
classesjs/classe_configura.js
@@ -649,6 +649,11 @@ i3GEO.configura = | @@ -649,6 +649,11 @@ i3GEO.configura = | ||
649 | id : "omenudataFerramentas14", | 649 | id : "omenudataFerramentas14", |
650 | text : "<span class='i3GEOconeFerramenta i3GEOiconeAdd'></span>" + $trad("conexaoServicoGeo"), | 650 | text : "<span class='i3GEOconeFerramenta i3GEOiconeAdd'></span>" + $trad("conexaoServicoGeo"), |
651 | url : "javascript:i3GEO.arvoreDeTemas.dialogo.conectaservico()" | 651 | url : "javascript:i3GEO.arvoreDeTemas.dialogo.conectaservico()" |
652 | + }, | ||
653 | + { | ||
654 | + id : "omenudataFerramentas9i", | ||
655 | + text : "<span class='i3GEOconeFerramenta i3GEOiconeVinde'></span>" + $trad("x85"), | ||
656 | + url : "javascript:i3GEO.arvoreDeTemas.dialogo.vinde()" | ||
652 | } | 657 | } |
653 | ] | 658 | ] |
654 | ] | 659 | ] |
ferramentas/vinde/wmsindejson.php
@@ -34,10 +34,11 @@ if(!file_exists($arq)){ | @@ -34,10 +34,11 @@ if(!file_exists($arq)){ | ||
34 | } | 34 | } |
35 | $resultado = curl_exec($ch); | 35 | $resultado = curl_exec($ch); |
36 | curl_close($ch); | 36 | curl_close($ch); |
37 | - | ||
38 | - $fp = fopen($arq,"w"); | ||
39 | - fwrite($fp,$resultado); | ||
40 | - fclose($fp); | 37 | + if($resultado != ""){ |
38 | + $fp = fopen($arq,"w"); | ||
39 | + fwrite($fp,$resultado); | ||
40 | + fclose($fp); | ||
41 | + } | ||
41 | } | 42 | } |
42 | else{ | 43 | else{ |
43 | $resultado = file_get_contents($arq); | 44 | $resultado = file_get_contents($arq); |