mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix for possibly nil benchmarks table
This commit is contained in:
parent
1789543037
commit
3580ddbd02
2 changed files with 2 additions and 2 deletions
|
|
@ -362,7 +362,7 @@ function user_scripts.getLastBenchmark(ifid, subdir)
|
|||
if(not isEmptyString(scripts_benchmarks)) then
|
||||
scripts_benchmarks = json.decode(scripts_benchmarks)
|
||||
else
|
||||
scripts_benchmarks = nil
|
||||
scripts_benchmarks = {}
|
||||
end
|
||||
|
||||
return(scripts_benchmarks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue