From 8c3a1dcb9d94cbce502508405066bf02fb4a7f19 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 1 Jan 2017 17:53:42 +0100 Subject: [PATCH] thirdparty: check for ktm variables first --- modules/thirdparty.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua index 60eb533a..0b7b7695 100644 --- a/modules/thirdparty.lua +++ b/modules/thirdparty.lua @@ -408,6 +408,7 @@ pfUI:RegisterModule("thirdparty", function () for i, button in pairs(buttons) do local b = getglobal(button) + if not b then return end pfUI.api:SkinButton(b) b:SetScale(.8) @@ -449,10 +450,10 @@ pfUI:RegisterModule("thirdparty", function () end -- remove seperators - KLHTM_RaidFrameLine:Hide() - KLHTM_RaidFrameBottomLine:Hide() - KLHTM_SelfFrameLine:Hide() - KLHTM_SelfFrameBottomLine:Hide() + if KLHTM_RaidFrameLine then KLHTM_RaidFrameLine:Hide() end + if KLHTM_RaidFrameBottomLine then KLHTM_RaidFrameBottomLine:Hide() end + if KLHTM_SelfFrameLine then KLHTM_SelfFrameLine:Hide() end + if KLHTM_SelfFrameBottomLine then KLHTM_SelfFrameBottomLine:Hide() end end if pfUI_config.thirdparty.ktm.enable == "1" then