el1['visible'] = self.visible.to_s
el1['timestamp'] = self.timestamp.xmlschema
+ 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
end
ordered_segments.each do |seg_id|
- if seg_id
+ if seg_id and seg_id != '0'
e = XML::Node.new 'seg'
e['id'] = seg_id
el1 << e