diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-30 14:55:39 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-30 14:55:39 +0200 |
commit | 55998f91c25b2cb27131587ab3396e43ad193fad (patch) | |
tree | bb2708a3cd5c7756426f97e90bdc444d32c1e370 | |
parent | 03b285fc261314057ef6cfec7efbf97aa70a9275 (diff) | |
download | prosody-55998f91c25b2cb27131587ab3396e43ad193fad.tar.gz prosody-55998f91c25b2cb27131587ab3396e43ad193fad.zip |
mod_admin_telnet: Guard against missing table field
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 85fb0d6c..828e85f4 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -1328,7 +1328,7 @@ function stats_methods:cfgraph() table.insert(stat_info.output, s); end - if data and data.sample_count > 0 then + if data and data.sample_count and data.sample_count > 0 then local raw_histogram = require "util.statistics".get_histogram(data); local graph_width, graph_height = 50, 10; |