From 99ef062a4d73068596e0d5c400c0ca41948c1bc6 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 10 Sep 2007 18:55:53 +0000 Subject: [PATCH] solução do ticket #13 - funcionamento do filtro em instalações debian --- classesphp/classe_temas.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/classesphp/classe_temas.php b/classesphp/classe_temas.php index cc9fdae..0068d31 100644 --- a/classesphp/classe_temas.php +++ b/classesphp/classe_temas.php @@ -341,7 +341,16 @@ $testa - Testa o filtro e retorna uma imagem. $filtro = str_replace("("," ",$filtro); $filtro = str_replace(")"," ",$filtro); } - $this->layer->setfilter($filtro); + if ($filtro == "") + {$this->layer->setfilter($filtro);} + else + { + $this->layer->setfilter($filtro); + $v = explode(" ",ms_GetVersion()); + //corrige bug do mapserver + if (($v[2] == "4.10.0") && ($this->layer->connectiontype == MS_POSTGIS)) + {$this->layer->setfilter("\"".$filtro."\"");} + } if ($testa == "") { $img = $this->mapa->prepareimage(); -- libgit2 0.21.2