Commit 2f8b0101c9b28ec9d521d9b066af7297d4c1c93f
1 parent
a7231d67
Exists in
master
and in
1 other branch
Indicador 26 - Sistema operacional dos usuarios
Showing
1 changed file
with
4 additions
and
9 deletions
Show diff stats
rn/MdEstatisticasColetarRN.php
... | ... | @@ -344,15 +344,10 @@ class MdEstatisticasColetarRN extends InfraRN { |
344 | 344 | } |
345 | 345 | |
346 | 346 | private function obterSistemasOperacionaisUsuarios(){ |
347 | - $query = "select distinct user_agent from infra_auditoria"; | |
348 | - $rs = BancoSEI::getInstance()->consultarSql($query); | |
349 | - $sistemas = (count($rs) && isset($rs[0]['user_agent'])) ? $rs[0]['user_agent'] : ''; | |
350 | - $lista = array(); | |
351 | - foreach($rs as $r) { | |
352 | - array_push($lista, $r['user_agent']); | |
353 | - } | |
354 | - InfraDebug::getInstance()->gravar('SEI26 - Sistemas Operacionais dos Clientes: ' . json_encode($lista), InfraLog::$INFORMACAO); | |
355 | - return $lista; | |
347 | + $query = "select distinct user_agent as nome from infra_auditoria"; | |
348 | + $sistemas = BancoSEI::getInstance()->consultarSql($query); | |
349 | + InfraDebug::getInstance()->gravar('SEI26 - Sistemas Operacionais dos Clientes: ' . json_encode($sistemas), InfraLog::$INFORMACAO); | |
350 | + return $sistemas; | |
356 | 351 | } |
357 | 352 | |
358 | 353 | } | ... | ... |