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