Verifies that the param is a Hash.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11011 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-15 10:03:52 +00:00
parent 39e7bab2b9
commit ccb886b715
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ module Redmine
end
if attachments.is_a?(Array)
attachments.each do |attachment|
next unless attachment.is_a?(Hash)
a = nil
if file = attachment['file']
next unless file.size > 0