# HG changeset patch # User Kim Alvefur # Date 1538312139 -7200 # Node ID 62c876e333e4838a81305dd8c434e3fa1944c116 # Parent 7355b2d0067c1603461cc56662932c1fc6e2946c mod_admin_telnet: Guard against missing table field diff -r 7355b2d0067c -r 62c876e333e4 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Sun Sep 30 14:55:15 2018 +0200 +++ b/plugins/mod_admin_telnet.lua Sun Sep 30 14:55:39 2018 +0200 @@ -1328,7 +1328,7 @@ 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;