diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-15 10:03:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-15 10:03:52 +0000 |
commit | ccb886b71552d06a3fa07e0571c647e7dbf30a28 (patch) | |
tree | f984200d89e439f48287355bd9dc85c6d7a43f37 /lib/plugins | |
parent | 39e7bab2b9aed464973ef35a6c0b63ec774a0ad0 (diff) | |
download | redmine-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.rb | 1 |
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 |