diff --git a/app/helpers/avatars_helper.rb b/app/helpers/avatars_helper.rb index c37082587..ec9c5ac70 100644 --- a/app/helpers/avatars_helper.rb +++ b/app/helpers/avatars_helper.rb @@ -36,7 +36,7 @@ module AvatarsHelper # Returns the avatar image tag for the given +user+ if avatars are enabled # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe ') - def avatar(user, options = { }) + def avatar(user, options = {}) if Setting.gravatar_enabled? options[:default] = Setting.gravatar_default options[:class] = GravatarHelper::DEFAULT_OPTIONS[:class] + " " + options[:class] if options[:class]