Browse Source

Improved error handling.

Martin Edenhofer 11 years ago
parent
commit
67020df9d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/search_index_backend.rb

+ 1 - 1
lib/search_index_backend.rb

@@ -69,7 +69,7 @@ return all activity entries of an user
   private
   private
 
 
   def self.build_url( type, o_id = nil )
   def self.build_url( type, o_id = nil )
-    index = Setting.get('es_index') + "_#{Rails.env}"
+    index = Setting.get('es_index').to_s + "_#{Rails.env}"
     url   = Setting.get('es_url')
     url   = Setting.get('es_url')
     return if !url
     return if !url
     if o_id
     if o_id