Added checks for #497

This commit is contained in:
Luca Deri 2016-04-15 22:11:50 +02:00
parent e64205eaf2
commit 7a34bd7891

View file

@ -1981,12 +1981,17 @@ end
-- ###############################################
function tolongint(what)
return(string.format("%u", what))
if(what == nil) then
return(0)
else
return(string.format("%u", what))
end
end
-- ###############################################
function trimSpace(what)
if(what == nil) then return("") end
return(string.gsub(what, "%s+", ""))
end