Permalink
Browse files

Merge branch 'master' into redis-config-as-hash

  • Loading branch information...
2 parents a8fd770 + fdba553 commit 39bf3ef123bea7c989a35e720fe51a19936f68d6 Antennapedia committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 vendor/plugins/piwik_analytics/lib/piwik_analytics.rb
View
2 vendor/plugins/piwik_analytics/lib/piwik_analytics.rb
@@ -75,7 +75,7 @@ class Config
def self.enabled?(format)
#raise PiwikAnalytics::PiwikAnalyticsConfigurationError if id_site.blank? || url.blank?
- environments.include?(Rails.env) && formats.include?(format.to_sym)
+ environments.include?(Rails.env) && format.respond_to?(:to_sym) && formats.include?(format.to_sym)
end
end
end

0 comments on commit 39bf3ef

Please sign in to comment.