aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_request_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-10-29 19:39:22 +0000
committerFrancis Irving <francis@mysociety.org>2009-10-29 19:39:22 +0000
commit8cd3af0365ed952fd5935935cf088d4f4a498b2f (patch)
tree11b0700e7014a3447fece78322d08f4fd13f9cb8 /app/controllers/admin_request_controller.rb
parent8f0ca6b58d49afe70de5d9a44ba23171a0bab3da (diff)
Check there are from addresses
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-rw-r--r--app/controllers/admin_request_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb
index 34f135e47..ff2772b0e 100644
--- a/app/controllers/admin_request_controller.rb
+++ b/app/controllers/admin_request_controller.rb
@@ -229,7 +229,7 @@ class AdminRequestController < AdminController
# For the holding pen, try to guess where it should be ...
@holding_pen = false
- if (@raw_email.incoming_message.info_request == InfoRequest.holding_pen_request && @raw_email.incoming_message.mail.from_addrs.size > 0)
+ if (@raw_email.incoming_message.info_request == InfoRequest.holding_pen_request && !@raw_email.incoming_message.mail.from_addrs.nil? && @raw_email.incoming_message.mail.from_addrs.size > 0)
@holding_pen = true
# 1. Use domain of email to try and guess which public body it