]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
fix based from TomH-Home
[rails.git] / app / models / node.rb
index 6f01ccee04a17af1613288cb4fb4a107ec1efcf6..6eecc853d12a585577a95e36c3a1e87331bf5fd4 100644 (file)
@@ -85,7 +85,7 @@ class Node < ActiveRecord::Base
     el1['lon'] = self.longitude.to_s
 
     # el['user'] = self.user.display_name if self.user.data_public?
-
+    user_display_name_cache = {} if user_display_name_cache.nil?
     if user_display_name_cache and user_display_name_cache[self.user_id]
       # use the cache if available
     else