aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/User.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-08 13:50:12 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-08 13:50:12 +0100
commitbff0d2095030b9e8d2d1018698826799bc1ed6db (patch)
treebbe17b93aa5ca68a8ea7b8072fddd896d6a9b462 /perllib/FixMyStreet/DB/Result/User.pm
parent0cd38fb6150d66892fb249ab4906df3cbc5bebb7 (diff)
parent5231c0cda1b90c172dd65c3e0d19c4c4bb84e508 (diff)
Merge remote-tracking branch 'origin/bromley' into bromley
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/User.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm
index 6788447d7..7f43d1a52 100644
--- a/perllib/FixMyStreet/DB/Result/User.pm
+++ b/perllib/FixMyStreet/DB/Result/User.pm
@@ -195,7 +195,7 @@ sub split_name {
my ($first, $last) = $self->name =~ /^(\S*)(?: (.*))?$/;
- return { first => $first, last => $last };
+ return { first => $first || '', last => $last || '' };
}
1;