Fixed warning

This commit is contained in:
Luca Deri 2016-04-06 09:53:18 +02:00
parent 5f95f491cd
commit 46f69860c5

View file

@ -497,7 +497,7 @@ for _key, _value in ipairs(flows_stats) do
print ("\", \"column_info\" : \"".. value["info"])
if(prefs.is_categorization_enabled and (value["info"] ~= "")) then
if(prefs.is_categorization_enabled and (value["info"] ~= "") and (key ~= nil)) then
flow = interface.findFlowByKey(tonumber(key))
if(flow ~= nil) then value["category"] = flow["category"] end
if(value["category"] ~= "") then