mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Added check for asset_utils fail
This commit is contained in:
parent
34b559e66d
commit
ba09b280cb
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ end
|
|||
-- @brief insert assetkey
|
||||
function asset_utils.getLastVersion(ifid)
|
||||
local query = string.format("SELECT version FROM %s WHERE ifid=%d ORDER BY version DESC LIMIT 1", table_name, ifid)
|
||||
local last_version = interface.alert_store_query(query)
|
||||
local last_version = interface.alert_store_query(query) or {}
|
||||
if table.len(last_version) == 0 then
|
||||
last_version = 0
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue