summaryrefslogtreecommitdiff
path: root/script/vm/doc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/doc.lua')
-rw-r--r--script/vm/doc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/doc.lua b/script/vm/doc.lua
index e2b383b6..6ee00192 100644
--- a/script/vm/doc.lua
+++ b/script/vm/doc.lua
@@ -101,7 +101,7 @@ local function getDeprecated(value)
return doc
elseif doc.type == 'doc.version' then
local valids = vm.getValidVersions(doc)
- if not valids[config.get(guide.getUri(value), 'Lua.runtime.version')] then
+ if valids and not valids[config.get(guide.getUri(value), 'Lua.runtime.version')] then
value._deprecated = doc
return doc
end