Browse Source

Added additional check for nil descriptions.

pull/2/head
atom0s 8 years ago
parent
commit
5c9ee260dc
  1. 4
      find.lua

4
find.lua

@ -24,7 +24,7 @@ @@ -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) @@ -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

Loading…
Cancel
Save