From 5778185084fa1bcc0f9b79070bbc83b7c9555225 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 28 Feb 2012 23:32:30 +0000 Subject: [PATCH] --- admin/php/webservices.php | 2 +- classesjs/geradordelinks.js | 2 +- classesphp/wmswfs.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/php/webservices.php b/admin/php/webservices.php index 789479e..d20f780 100644 --- a/admin/php/webservices.php +++ b/admin/php/webservices.php @@ -172,7 +172,7 @@ function alterarWS() $dbhw->query("INSERT INTO i3geoadmin_ws (nome_ws,desc_ws,autor_ws,tipo_ws,link_ws,nacessos,nacessosok) VALUES ('$idtemp','','','','',0,0)"); $id = $dbh->query("SELECT id_ws FROM i3geoadmin_ws WHERE nome_ws = '$idtemp'"); $id = $id->fetchAll(); - $id = $id[0]['id_ws']); + $id = $id[0]['id_ws']; $dbhw->query("UPDATE i3geoadmin_ws SET nome_ws = '' WHERE id_ws = $id AND nome_ws = '$idtemp'"); $retorna = $id; } diff --git a/classesjs/geradordelinks.js b/classesjs/geradordelinks.js index 0e1ee41..8339994 100644 --- a/classesjs/geradordelinks.js +++ b/classesjs/geradordelinks.js @@ -224,7 +224,7 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem ins += "&pontos="+$i("pontos").value ins += "&nometemapontos="+$i("nometemapontos").value } - if($i("perfili").value != "") + if($i("perfili") && $i("perfili").value != "") { ins += "&perfil="+$i("perfili").value } diff --git a/classesphp/wmswfs.php b/classesphp/wmswfs.php index b692e62..5e8ffb6 100644 --- a/classesphp/wmswfs.php +++ b/classesphp/wmswfs.php @@ -326,15 +326,15 @@ Retorno: function temaswms() { global $servico,$id_ws; - $wms_service_request = gravaCacheWMS($servico); # ------------------------------------------------------------- # Test that the capabilites file has successfully downloaded. # //$wms_service_request = "c://temp//teste.xml"; include_once("../admin/php/admin.php"); - include_once("../admin/php/webservices.php"); + include_once("../admin/php/webservices.php"); + //error_reporting(E_ALL); if($wms_service_request == "erro") { # Cannot download the capabilities file. -- libgit2 0.21.2