mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes attempt to index a nil value (global 'user_scripts')
This commit is contained in:
parent
1a4c8c4655
commit
42de49e692
1 changed files with 1 additions and 0 deletions
|
|
@ -529,6 +529,7 @@ function recipients.get_recipient(recipient_id, include_stats)
|
|||
recipient_details["user_script_categories"] = {}
|
||||
end
|
||||
|
||||
local user_scripts = require "user_scripts"
|
||||
for _, category in pairs(user_scripts.script_categories) do
|
||||
recipient_details["user_script_categories"][#recipient_details["user_script_categories"] + 1] = category.id
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue