Quantcast

Fix a bug in database upgrade/initialization

James Whitehead II [10-13-10 - 22:14]
Fix a bug in database upgrade/initialization
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 93c1ad7..bbf65b7 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -174,7 +174,7 @@ function addon:InitializeDatabase()
     if not CliqueDB2 then
         reset = true
     elseif CliqueDB2.dbversion == 5 then
-        if not CliqueDB2.settings or CliqueDB2.settings[charKey] then
+        if not CliqueDB2.settings or not CliqueDB2.settings[charKey] then
             reset = true
         else
             -- Upgrade to add the blacklist table to settings