Author: arta
Date: Wed Jul 28 18:06:35 CEST 2010
Revision: 4379
Log:

#GUI/Core: Fixed a function that could error when using an invalid spellId in a Special Warning (ie PTR/Beta)

Updated
trunk/DBM-GUI/DBM-GUI.lua

trunk/DBM-GUI/DBM-GUI.lua
Action: modified
Old revision: 4378
Old date: 2010-07-27 12:39:46 UTC

@@ -275,7 +275,7 @@

local function replaceSpellLinks(id)
local spellId = tonumber(id)
- local spellName = GetSpellInfo(spellId)
+ local spellName = GetSpellInfo(spellId) or "unknown"
return ("|cff71d5ff|Hspell:%d|h%s|h|r"):format(spellId, spellName)
end