Commit 00588900e288fc32e3c38357ed2420d8d3ef56a8
1 parent
34ec7c91
Exists in
master
and in
7 other branches
Alteração na rotina de busca por palavra para aceitar caracteres em caixa alta
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
classesphp/classe_atributos.php
| @@ -684,10 +684,10 @@ class Atributos | @@ -684,10 +684,10 @@ class Atributos | ||
| 684 | } | 684 | } |
| 685 | else | 685 | else |
| 686 | { | 686 | { |
| 687 | - if ($v == $palavra || (stristr(strtr($v,$buscas,$trocas),strtr($palavra,$buscas,$trocas)))) | 687 | + |
| 688 | + if (strtolower($v) == strtolower($palavra) || (stristr(strtr(strtolower($v),$buscas,$trocas),strtr(strtolower($palavra),$buscas,$trocas)))) | ||
| 688 | { | 689 | { |
| 689 | - if($convC == true) | ||
| 690 | - { | 690 | + if($convC == true){ |
| 691 | $v = $this->converte($v); | 691 | $v = $this->converte($v); |
| 692 | } | 692 | } |
| 693 | $r[] = array("item" => $item,"valor" => $v); | 693 | $r[] = array("item" => $item,"valor" => $v); |