diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-27 15:54:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-27 16:10:11 +0100 |
commit | b3c14cc0e839fc11c1d192c46476751e5154d2d7 (patch) | |
tree | 2a344ead105c9e0154951a2c14dffa23fe2b703a /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 62ffebc89cc66d32a828ea1de8c850c3e950faa1 (diff) |
Allow people to sign in (or not) as they make a report.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index c5851b256..da23802c3 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -188,7 +188,7 @@ sub check_for_errors { unless $self->council && $self->council =~ m/^(?:-1|[\d,]+(?:\|[\d,]+)?)$/; - if ( $self->name !~ m/\S/ ) { + if ( !$self->name || $self->name !~ m/\S/ ) { $errors{name} = _('Please enter your name'); } elsif (length( $self->name ) < 5 |