liquid_feedback_frontend
view model/member_count.lua @ 1841:e6983d79d74f
Fix Lua error on <ol> or <ul> tag at end of input to util.html_is_safe(...)
| author | jbe | 
|---|---|
| date | Thu Feb 03 15:21:45 2022 +0100 (2022-02-03) | 
| parents | a85f7ea61ef6 | 
| children | 
 line source
     1 MemberCount = mondelefant.new_class()
     2 MemberCount.table = 'member_count'
     4 function MemberCount:get()
     5   if not MemberCount.total_count then
     6     local member_count = self:new_selector():optional_object_mode():exec()
     7     if member_count then
     8       MemberCount.total_count = member_count.total_count
     9     end
    10   end
    11   return MemberCount.total_count
    12 end
