From 5c9ee260dc873fa1fde7ad81a800640961b273df Mon Sep 17 00:00:00 2001 From: atom0s Date: Thu, 16 Feb 2017 14:59:26 -0800 Subject: [PATCH] Added additional check for nil descriptions. --- find.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/find.lua b/find.lua index 13c3c3e..b1d1016 100644 --- a/find.lua +++ b/find.lua @@ -24,7 +24,7 @@ _addon.author = 'MalRD'; _addon.name = 'Find'; -_addon.version = '3.0.0'; +_addon.version = '3.0.1'; local slips = require('slips'); @@ -91,7 +91,7 @@ local function find(item, cleanString, useDescription) return true; elseif (item.LogNamePlural[config.language] ~= nil and string.lower(item.LogNamePlural[config.language]):find(cleanString)) then return true; - elseif (useDescription and item.Description ~= nil) then + elseif (useDescription and item.Description ~= nil and item.Description[config.language] ~= nil) then return (string.lower(item.Description[config.language]):find(cleanString)); end