summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-15 10:03:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-15 10:03:52 +0000
commitccb886b71552d06a3fa07e0571c647e7dbf30a28 (patch)
treef984200d89e439f48287355bd9dc85c6d7a43f37 /lib/plugins
parent39e7bab2b9aed464973ef35a6c0b63ec774a0ad0 (diff)
downloadredmine-ccb886b71552d06a3fa07e0571c647e7dbf30a28.tar.gz
redmine-ccb886b71552d06a3fa07e0571c647e7dbf30a28.zip
Verifies that the param is a Hash.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11011 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
index 344ff0866..7da2841d1 100644
--- a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
+++ b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -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