From 493be660cda958cbc0c86132d6228e94e5cea971 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 18 Jan 2010 12:20:31 +0000 Subject: [PATCH] Correção na query postgres que retorna a lista de temas de cada prancha --- admin/php/xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/php/xml.php b/admin/php/xml.php index 4bad767..114cd5f 100644 --- a/admin/php/xml.php +++ b/admin/php/xml.php @@ -476,7 +476,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) } function geraXmlAtlas_pegatemas($xml,$id_prancha,$dbh) { - $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = $id_prancha"; + $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha'"; //echo $q; $qtemas = $dbh->query($q); foreach($qtemas as $row) -- libgit2 0.21.2