fixed data ocorrencia verification

git-svn-id: https://svn.coded.pt/svn/SIPRP@1769 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 14 years ago
parent d8798b33ef
commit a814e24557

@ -269,13 +269,14 @@ public class Estatistica extends AbstractPageBean {
ex.printStackTrace();
return;
}
Option[] options = new Option[ estabelecimentos.size() > 1 ? estabelecimentos.size() + 1 : 1 ];
// Option[] options = new Option[ estabelecimentos.size() > 1 ? estabelecimentos.size() + 1 : 1 ];
Option[] options = new Option[ estabelecimentos.size() ];
int off = 0;
if( options.length > 1 )
{
options[ 0 ] = new Option( null, "Todos" );
off = 1;
}
// if( options.length > 1 )
// {
// options[ 0 ] = new Option( null, "Todos" );
// off = 1;
// }
for( int i = 0; i + off < options.length; i++ )
{
options[ i + off ] = new Option( estabelecimentos.get( i ).getID(), ( String ) estabelecimentos.get( i ).getValue() );

Loading…
Cancel
Save