Commit bafe29292c7409d28fd7765fe8dcaee8db95a1ae

Authored by Edmar Moretti
1 parent d9dedd7d

Correção menutemas.php

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
admin/php/menutemas.php
@@ -1207,8 +1207,7 @@ function alteraTemas() @@ -1207,8 +1207,7 @@ function alteraTemas()
1207 { 1207 {
1208 global $esquemaadmin,$nome,$desc,$id,$codigo,$tipoa,$download,$ogc,$kml,$link,$tags,$kmz,$locaplic,$es,$it,$en; 1208 global $esquemaadmin,$nome,$desc,$id,$codigo,$tipoa,$download,$ogc,$kml,$link,$tags,$kmz,$locaplic,$es,$it,$en;
1209 //error_reporting(0); 1209 //error_reporting(0);
1210 - try  
1211 - { 1210 + try{
1212 $retorna = "ok"; 1211 $retorna = "ok";
1213 include("conexao.php"); 1212 include("conexao.php");
1214 $nomeo = $nome; 1213 $nomeo = $nome;
@@ -1235,7 +1234,7 @@ function alteraTemas() @@ -1235,7 +1234,7 @@ function alteraTemas()
1235 "ogc_tema" => $ogc, 1234 "ogc_tema" => $ogc,
1236 "kml_tema" => $kml 1235 "kml_tema" => $kml
1237 ); 1236 );
1238 - if(isset($kmz)) 1237 + if(isset($kmz)){
1239 $dataCol["kmz_tema"] = $kmz; 1238 $dataCol["kmz_tema"] = $kmz;
1240 } 1239 }
1241 i3GeoAdminUpdate($dbhw,"i3geoadmin_temas",$dataCol,"WHERE id_tema = $id"); 1240 i3GeoAdminUpdate($dbhw,"i3geoadmin_temas",$dataCol,"WHERE id_tema = $id");
@@ -1290,7 +1289,7 @@ function alteraTemas() @@ -1290,7 +1289,7 @@ function alteraTemas()
1290 "ogc_tema" => "", 1289 "ogc_tema" => "",
1291 "kml_tema" => "" 1290 "kml_tema" => ""
1292 ); 1291 );
1293 - if(isset($kmz)) 1292 + if(isset($kmz)){
1294 $dataCol["kmz_tema"] = ""; 1293 $dataCol["kmz_tema"] = "";
1295 } 1294 }
1296 $retorna = i3GeoAdminInsertUnico($dbhw,"i3geoadmin_temas",$dataCol,"nome_tema","id_tema"); 1295 $retorna = i3GeoAdminInsertUnico($dbhw,"i3geoadmin_temas",$dataCol,"nome_tema","id_tema");