diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 11:29:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 11:29:50 +0100 |
commit | 0e24f8d44713a530fc733f9e0dbf3e7c5bf63e4a (patch) | |
tree | e417dbb63c0080a50702b1ba69c4eea3f0df8e6b /bin/send-reports | |
parent | a0dc2cb85d7a89978b7240789bf9bb5b80035a1d (diff) |
Look up user's email address separately, much much quicker.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports index 00d9f6b5b..9d6f79d36 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -365,7 +365,7 @@ sub post_london_report { my ( $problem, %h ) = @_; my $phone = $h{phone}; my $mobile = ''; - if ($phone =~ /^\s*07/) { + if ($phone && $phone =~ /^\s*07/) { $mobile = $phone; $phone = ''; } |