mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implement API to update the user scripts configuration
This commit is contained in:
parent
d59bd0e1df
commit
9fd1ced9fd
4 changed files with 91 additions and 2 deletions
|
|
@ -2757,9 +2757,9 @@ function table.compare(t1, t2, ignore_mt)
|
|||
end
|
||||
|
||||
function toboolean(s)
|
||||
if s == "true" then
|
||||
if((s == "true") or (s == true)) then
|
||||
return true
|
||||
elseif s == "false" then
|
||||
elseif((s == "false") or (s == false)) then
|
||||
return false
|
||||
else
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue