# HG changeset patch # User Kim Alvefur # Date 1643464898 -3600 # Node ID 7db81c9cbbbf7309ca88493810bf6d36c90158ec # Parent e9f34a04067eb2e72393013ef4da79d0390cacea mod_admin_shell: Fix traceback on rendering graph of stats without extra labels Stops an error when extra_labels is nil since it attempts to index it Unsure about correctness diff -r e9f34a04067e -r 7db81c9cbbbf plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Sat Jan 29 14:58:37 2022 +0100 +++ b/plugins/mod_admin_shell.lua Sat Jan 29 15:01:38 2022 +0100 @@ -1653,7 +1653,7 @@ sum = value elseif suffix == "_count" then count = value - else + elseif extra_labels then local bucket_threshold = extra_labels["le"] local bucket_count if cumulative then