Commit c8e05829ee1b5fcb1153c5d89e8766a1ffd32cdc

Authored by Starlone Passos
1 parent f9b81ba2

Correcao no indicador sistemas operacionais quando user_agent era nulo

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
rn/MdEstatisticasColetarRN.php
... ... @@ -373,9 +373,9 @@ class MdEstatisticasColetarRN extends InfraRN {
373 373 private function obterSistemasOperacionaisUsuarios(){
374 374 $sgbd = $this->obterTipoSGBD();
375 375 if ($sgbd == 'Oracle') {
376   - $query = "select distinct to_char(user_agent) as nome from infra_auditoria";
  376 + $query = "select distinct to_char(user_agent) as nome from infra_auditoria where user_agent is not null";
377 377 } else {
378   - $query = "select distinct user_agent as nome from infra_auditoria";
  378 + $query = "select distinct user_agent as nome from infra_auditoria where user_agent is not null";
379 379 }
380 380 InfraDebug::getInstance()->gravar('query: ' . json_encode($query), InfraLog::$INFORMACAO);
381 381 $sistemas = BancoSEI::getInstance()->consultarSql($query);
... ...