In addon:ScanVendor(): Moved assignment of "added = true" so the scan frame will not appear if there are no results.
James D. Callahan III [03-20-10 - 09:08]
In addon:ScanVendor(): Moved assignment of "added = true" so the scan frame will not appear if there are no results.
diff --git a/Datamine.lua b/Datamine.lua
index c552383..bfb6762 100644
--- a/Datamine.lua
+++ b/Datamine.lua
@@ -1682,9 +1682,8 @@ do
if spell_id then
local ttscantext = addon:TooltipScanRecipe(spell_id, true, true)
- added = true
-
if ttscantext and ttscantext ~= "" then
+ added = true
tinsert(output, ttscantext)
end
@@ -1711,6 +1710,7 @@ do
end
if not found then
+ added = true
tinsert(output, "Vendor ID missing from " .. spell_id)
end
else