From 2bc2f2aeb17690126f415694f6962f45ce6bf5e4 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 19 May 2024 21:49:37 +0200 Subject: [PATCH] core: use empty config variable as fallback --- pfUI.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfUI.lua b/pfUI.lua index 1dcf8a53..8e74f1ef 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -302,7 +302,7 @@ pfUI:SetScript("OnEvent", function() -- use "Modern" as default profile on a fresh install if pfUI.api.isempty(pfUI_init) and pfUI.api.isempty(pfUI_config) then - pfUI_config = pfUI.api.CopyTable(pfUI_profiles["Modern"]) + pfUI_config = pfUI.api.CopyTable(pfUI_profiles["Modern"]) or {} end pfUI:LoadConfig()