Bug in Webform: tests always returned PE_FORMEMPTY

This commit is contained in:
Clément Oudot 2009-06-22 14:04:24 +00:00
parent 198bcf70bc
commit f3536d4634

View File

@ -28,23 +28,18 @@ sub extractFormInfo {
unless (
(
(
$self->{'user'}
and length( $self->{'user'} = $self->param('user') ) > 0
length( $self->{'user'} = $self->param('user') ) > 0
)
&& (
(
length( $self->{'password'} = $self->param('password') ) > 0
)
|| (
$self->{'newpassword'}
and length(
$self->{'newpassword'} = $self->param('newpassword')
) > 0
length($self->{'newpassword'} = $self->param('newpassword') ) > 0
)
)
)
|| ( $self->{'mail'}
and length( $self->{'mail'} = $self->param('mail') ) > 0 )
|| ( length( $self->{'mail'} = $self->param('mail') ) > 0 )
);
$self->{'oldpassword'} = $self->param('oldpassword');
$self->{'confirmpassword'} = $self->param('confirmpassword');