Commit a52278960464690c3f7a63530c4de636af2c1fef
1 parent
ad4e36aa
Exists in
master
and in
1 other branch
Correcao de utf8 para navegadores
Showing
1 changed file
with
11 additions
and
3 deletions
Show diff stats
rn/MdEstatisticasColetarRN.php
... | ... | @@ -469,12 +469,20 @@ class MdEstatisticasColetarRN extends InfraRN { |
469 | 469 | public function obterNavegadores(){ |
470 | 470 | $query = "select count(*) as quantidade, identificacao as nome, versao from infra_navegador group by identificacao,versao"; |
471 | 471 | $rs = BancoSEI::getInstance()->consultarSql($query); |
472 | + $lista = array(); | |
472 | 473 | foreach ($rs as $r) { |
473 | - $r['nome'] = utf8_encode($r['nome']); | |
474 | + $r['nome'] = | |
475 | + InfraDebug::getInstance()->gravar('Navegador: ' . json_encode($r) . ' - ' . $r['nome'], InfraLog::$INFORMACAO); | |
476 | + $result = array( | |
477 | + 'nome' => utf8_encode($r['nome']), | |
478 | + 'quantidade' => $r['quantidade'], | |
479 | + 'versao' => $r['versao'] | |
480 | + ); | |
481 | + array_push($lista, $result); | |
474 | 482 | } |
475 | 483 | |
476 | - InfraDebug::getInstance()->gravar('SEI13 - Quantidade de Navegadores: ' . json_encode($rs), InfraLog::$INFORMACAO); | |
477 | - return $rs; | |
484 | + InfraDebug::getInstance()->gravar('SEI13 - Quantidade de Navegadores: ' . json_encode($lista), InfraLog::$INFORMACAO); | |
485 | + return $lista; | |
478 | 486 | } |
479 | 487 | |
480 | 488 | ... | ... |