Commit dcc8fef093e32a96d0534fa08d08f5a475be377e
1 parent
8c65ead9
Exists in
master
and in
7 other branches
Correção nas operações de salvar e recuperar mapa do banco
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
classesphp/funcoes_gerais.php
... | ... | @@ -2944,14 +2944,13 @@ function restauraMapaAdmin($id_mapa,$dir_tmp){ |
2944 | 2944 | $mapfile = str_ireplace("TYPE ANNOTATION","TYPE POINT",$mapfile); |
2945 | 2945 | $mapfile = str_replace(array("<?","?>"),"",$mapfile); |
2946 | 2946 | $s = fwrite($baseh,$mapfile); |
2947 | - fclose($baseh); | |
2948 | - } | |
2949 | - | |
2950 | - if (@ms_newMapObj($base)){ | |
2951 | - return $base; | |
2952 | - } | |
2953 | - else{ | |
2954 | - unlink($base); | |
2947 | + fclose($baseh); | |
2948 | + if (@ms_newMapObj($base)){ | |
2949 | + return $base; | |
2950 | + } | |
2951 | + else{ | |
2952 | + unlink($base); | |
2953 | + } | |
2955 | 2954 | } |
2956 | 2955 | return false; |
2957 | 2956 | } | ... | ... |