Commit bafe29292c7409d28fd7765fe8dcaee8db95a1ae
1 parent
d9dedd7d
Exists in
master
and in
7 other branches
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 | 1207 | { |
1208 | 1208 | global $esquemaadmin,$nome,$desc,$id,$codigo,$tipoa,$download,$ogc,$kml,$link,$tags,$kmz,$locaplic,$es,$it,$en; |
1209 | 1209 | //error_reporting(0); |
1210 | - try | |
1211 | - { | |
1210 | + try{ | |
1212 | 1211 | $retorna = "ok"; |
1213 | 1212 | include("conexao.php"); |
1214 | 1213 | $nomeo = $nome; |
... | ... | @@ -1235,7 +1234,7 @@ function alteraTemas() |
1235 | 1234 | "ogc_tema" => $ogc, |
1236 | 1235 | "kml_tema" => $kml |
1237 | 1236 | ); |
1238 | - if(isset($kmz)) | |
1237 | + if(isset($kmz)){ | |
1239 | 1238 | $dataCol["kmz_tema"] = $kmz; |
1240 | 1239 | } |
1241 | 1240 | i3GeoAdminUpdate($dbhw,"i3geoadmin_temas",$dataCol,"WHERE id_tema = $id"); |
... | ... | @@ -1290,7 +1289,7 @@ function alteraTemas() |
1290 | 1289 | "ogc_tema" => "", |
1291 | 1290 | "kml_tema" => "" |
1292 | 1291 | ); |
1293 | - if(isset($kmz)) | |
1292 | + if(isset($kmz)){ | |
1294 | 1293 | $dataCol["kmz_tema"] = ""; |
1295 | 1294 | } |
1296 | 1295 | $retorna = i3GeoAdminInsertUnico($dbhw,"i3geoadmin_temas",$dataCol,"nome_tema","id_tema"); | ... | ... |