about summary refs log tree commit diff
path: root/app/helpers/languages_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/languages_helper.rb')
-rw-r--r--app/helpers/languages_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/languages_helper.rb b/app/helpers/languages_helper.rb
index 3a65af686..f22cc6d28 100644
--- a/app/helpers/languages_helper.rb
+++ b/app/helpers/languages_helper.rb
@@ -242,6 +242,6 @@ module LanguagesHelper
   end
 
   def valid_locale?(locale)
-    SUPPORTED_LOCALES.key?(locale.to_sym)
+    locale.present? && SUPPORTED_LOCALES.key?(locale.to_sym)
   end
 end