aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-20 02:04:22 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-20 02:04:22 +0100
commit27a981ba79c257298b63b57bcbaaaddcd0a68c32 (patch)
treedb4c9de6d419088da7c0c126bf9976d2a270e49a /app/controllers/user_controller.rb
parentd8310fc0e98963661edc9633a0c7b078332d89df (diff)
Fix up error handling.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index e2bfa7da9..e9b5f8676 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -357,11 +357,6 @@ class UserController < ApplicationController
file_name = params[:file].original_filename
file_content = params[:file].read
end
- if file_name.nil?
- flash[:error] = "Please choose a file containing your photo"
- render :template => 'user/set_draft_profile_photo.rhtml'
- return
- end
# validate it
@draft_profile_photo = ProfilePhoto.new(:data => file_content, :draft => true)