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:
parent
39e7bab2b9
commit
ccb886b715
|
@ -78,6 +78,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
if attachments.is_a?(Array)
|
if attachments.is_a?(Array)
|
||||||
attachments.each do |attachment|
|
attachments.each do |attachment|
|
||||||
|
next unless attachment.is_a?(Hash)
|
||||||
a = nil
|
a = nil
|
||||||
if file = attachment['file']
|
if file = attachment['file']
|
||||||
next unless file.size > 0
|
next unless file.size > 0
|
||||||
|
|
Loading…
Reference in New Issue