mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added null info value error (#6713)
This commit is contained in:
parent
adfd0fac09
commit
3987cd5896
1 changed files with 12 additions and 12 deletions
|
|
@ -4394,20 +4394,20 @@ function version2int(v)
|
|||
end
|
||||
|
||||
function get_version_update_msg(info, latest_version)
|
||||
if info then
|
||||
local version_elems = split(info["version"], " ")
|
||||
local new_version = version2int(latest_version)
|
||||
local this_version = version2int(version_elems[1])
|
||||
|
||||
local version_elems = split(info["version"], " ")
|
||||
local new_version = version2int(latest_version)
|
||||
local this_version = version2int(version_elems[1])
|
||||
|
||||
if (new_version > this_version) then
|
||||
return i18n("about.new_major_available", {
|
||||
product = info["product"], version = latest_version,
|
||||
url = "http://www.ntop.org/get-started/download/"
|
||||
})
|
||||
end
|
||||
|
||||
return ""
|
||||
if (new_version > this_version) then
|
||||
return i18n("about.new_major_available", {
|
||||
product = info["product"], version = latest_version,
|
||||
url = "http://www.ntop.org/get-started/download/"
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return ""
|
||||
end
|
||||
|
||||
--- Check if there is a new major release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue