diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 8c19e7d..d1207c6 100755 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -2944,14 +2944,13 @@ function restauraMapaAdmin($id_mapa,$dir_tmp){ $mapfile = str_ireplace("TYPE ANNOTATION","TYPE POINT",$mapfile); $mapfile = str_replace(array(""),"",$mapfile); $s = fwrite($baseh,$mapfile); - fclose($baseh); - } - - if (@ms_newMapObj($base)){ - return $base; - } - else{ - unlink($base); + fclose($baseh); + if (@ms_newMapObj($base)){ + return $base; + } + else{ + unlink($base); + } } return false; } -- libgit2 0.21.2