Mercurial > prosody-modules
diff mod_debug_omemo/view.tpl.html @ 4686:76af816739f3
mod_debug_omemo: Fix traceback in case of zero devices
Turns out ipairs(nil) in Lua 5.4 does not throw until the first
iterator.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 13 Sep 2021 21:47:01 +0200 |
parents | d3080767ead3 |
children | 41ddb782320c |
line wrap: on
line diff
--- a/mod_debug_omemo/view.tpl.html Mon Sep 13 21:45:20 2021 +0200 +++ b/mod_debug_omemo/view.tpl.html Mon Sep 13 21:47:01 2021 +0200 @@ -211,10 +211,10 @@ <th>Access</th> </tr> {omemo.devices%<tr> - <td>{idx}</td> - <td>{item.status}</td> - <td>{item.bundle}</td> - <td>{item.access_model}</td> + <td>{idx?<i>N/A</i>}</td> + <td>{item.status?<i>N/A</i>}</td> + <td>{item.bundle?<i>N/A</i>}</td> + <td>{item.access_model?<i>N/A</i>}</td> </tr>} </table> </div>