aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-27 15:54:33 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-27 16:10:11 +0100
commitb3c14cc0e839fc11c1d192c46476751e5154d2d7 (patch)
tree2a344ead105c9e0154951a2c14dffa23fe2b703a /perllib/FixMyStreet/DB/Result/Problem.pm
parent62ffebc89cc66d32a828ea1de8c850c3e950faa1 (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.pm2
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