mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed max length error in nindex table slice
This commit is contained in:
parent
382957457a
commit
accef47f24
1 changed files with 5 additions and 1 deletions
|
|
@ -4345,7 +4345,11 @@ function table.slice(t, start_table, end_table)
|
|||
error("The array to slice cannot be nil!")
|
||||
end
|
||||
|
||||
if start_table < 1 or end_table > #t then
|
||||
if end_table > #t then
|
||||
end_table = #t
|
||||
end
|
||||
|
||||
if start_table < 1 then
|
||||
error("Invalid bounds!")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue