From 55998f91c25b2cb27131587ab3396e43ad193fad Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 30 Sep 2018 14:55:39 +0200 Subject: mod_admin_telnet: Guard against missing table field --- plugins/mod_admin_telnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3