summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index ecbc48c..243f2a6 100644
--- a/api.lua
+++ b/api.lua
@@ -39,8 +39,8 @@ function awards.tbv(tb,value,default)
if not default then
default = {}
end
- if not tb then
- print("Table not defined!")
+ if not tb or type(tb) ~= "table" then
+ print("Table is null, or not a table!")
return
end
if not tb[value] then