7 - Not checking the "type" field for valid types
SBC will display a block for any LDB regardless of type:
local lfgDataObjects = LDB:NewDataObject("LFG DataObject Collection", {
type = "lfg-dataobject-list",
list = {},
})
That makes a blank block.
- 2 comments
- 2 comments
- #2
funkydude Mon, 13 Apr 2009 00:58:22By design so that any future blocks don't get missed out. Was also originally because a type wasn't required and some plugins don't use it.
- #1
sylvanaar Wed, 17 Dec 2008 23:49:26Sorry the first one makes a block titled "LFG DataObject Collection"
This makes a blank one
local lfgLevelFilter = LDB:NewDataObject("Level Filter", { type = "lfg-filter", text = "", })