Commit a057f7eb69427403fb0c5f853bab0f8dcc6ce901
1 parent
48737ed2
Exists in
master
and in
21 other branches
Remoção de código em duplicidade.
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
rn/ProcessoEletronicoRN.php
@@ -270,11 +270,9 @@ class ProcessoEletronicoRN extends InfraRN { | @@ -270,11 +270,9 @@ class ProcessoEletronicoRN extends InfraRN { | ||
270 | 270 | ||
271 | if ($bolRetornoRaw !== false) { | 271 | if ($bolRetornoRaw !== false) { |
272 | if (isset($objEstrutura->hierarquia) && isset($objEstrutura->hierarquia->nivel)) { | 272 | if (isset($objEstrutura->hierarquia) && isset($objEstrutura->hierarquia->nivel)) { |
273 | - if (!is_array($objEstrutura->hierarquia->nivel)) { | ||
274 | - $objEstrutura->hierarquia->nivel = array($objEstrutura->hierarquia->nivel); | ||
275 | - } | ||
276 | 273 | ||
277 | - $objEstrutura->hierarquia->nivel = (array) $objEstrutura->hierarquia->nivel; | 274 | + if (!is_array($objEstrutura->hierarquia->nivel)) $objEstrutura->hierarquia->nivel = array($objEstrutura->hierarquia->nivel); |
275 | + | ||
278 | foreach ($objEstrutura->hierarquia->nivel as &$objNivel) { | 276 | foreach ($objEstrutura->hierarquia->nivel as &$objNivel) { |
279 | $objNivel->nome = utf8_decode($objNivel->nome); | 277 | $objNivel->nome = utf8_decode($objNivel->nome); |
280 | } | 278 | } |