summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ward <anjayward@gmail.com>2013-11-07 09:02:05 +0000
committerAndrew Ward <anjayward@gmail.com>2013-11-07 09:02:05 +0000
commitb555a598014b5086a3ea28a3d0baf1a5f59650d6 (patch)
tree04bceead8a8624c4ca13eaca034d31d6330fdfea
parentee438e31f8d714ce3b83fabfc5ce400b6e03a35a (diff)
Fix awards.tbv
-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