# HG changeset patch # User Jonas Schäfer # Date 1611242009 -3600 # Node ID f975a4d31f35c282989f400d200bec5e5592cf98 # Parent 49cf9d188b263b98dc382b13ed2320a621c09174 mod_http_admin_api: make the api a bit less untested (read: fix bugs) diff -r 49cf9d188b26 -r f975a4d31f35 mod_http_admin_api/mod_http_admin_api.lua --- a/mod_http_admin_api/mod_http_admin_api.lua Thu Jan 21 15:51:07 2021 +0100 +++ b/mod_http_admin_api/mod_http_admin_api.lua Thu Jan 21 16:13:29 2021 +0100 @@ -270,6 +270,9 @@ -- Online sessions do local user_sessions = hosts[module.host].sessions[username]; + if user_sessions then + user_sessions = user_sessions.sessions + end local sessions = {}; if user_sessions then for _, session in pairs(user_sessions) do