Bom dia!
Após atualização o sistema torna-se inoperante e retorna o seguinte erro:
Fatal error: [] operator not supported for strings in C:\xampp\htdocs\gpweb\classes\ui.class.php on line 350
Ocorreu com mais alguém?
Alguma sugestão?
Obrigado
Autor: Leonardo Costa
22 comentários
$qnt=0;
$saida='';
foreach($_REQUEST as $chave => $valor) {
if (is_array($valor)){
foreach($valor as $chave1 => $valor1) $saida.=($qnt++ ? '&' : '').$chave.'[]='.$valor1;
}
else $saida.=($qnt++ ? '&' : '').$chave.'='.$valor;
}
if (!isset($this->estado['POSICAOSALVA'])) $this->estado['POSICAOSALVA']=array();
if (!is_array($this->estado['POSICAOSALVA'])) $this->estado['POSICAOSALVA']=array();
$indices=count($this->estado['POSICAOSALVA']);
if ($indices && $this->estado['POSICAOSALVA'][$indices-1]!=$saida) $this->estado['POSICAOSALVA'][]=$saida;
elseif (!$indices) $this->estado['POSICAOSALVA'][]=$saida;
}