fixed isEmpty bug

git [11-21-18 - 17:09]
fixed isEmpty bug
Filename
00_startup.lua
DailyAutoShare.txt
DasLog.lua
diff --git a/00_startup.lua b/00_startup.lua
index b584354..b011a18 100644
--- a/00_startup.lua
+++ b/00_startup.lua
@@ -2,7 +2,7 @@ DailyAutoShare              = DailyAutoShare or {}
 DAS                         = DailyAutoShare

 DAS.name                    = "DailyAutoShare"
-DAS.version                 = "3.6"
+DAS.version                 = "3.61"
 DAS.author                  = "manavortex"
 DAS.settings                = {}
 DAS.globalSettings          = {}
@@ -438,27 +438,6 @@ local function RegisterEventHooks()
 end


--- local function resetQuests()
-  -- DAS.todaysLog = {}
-  -- DAS.globalSettings.completionLog[tonumber(GetDate())] = DAS.todaysLog
-  -- forceRefreshControl()
--- end
-
-local typeTable = "table"
-local function isEmpty(tbl)
-  if not tbl then return true end
-  local ret = true
-  for key, value in pairs(tbl) do
-    if type(value) == typeTable then
-      ret = ret and ({} == value or isEmpty(value))
-      else
-      ret = false
-    end
-  end
-  return ret
-end
-
-
 -- has to be a local var, lua error if not
 -- Keep outside of function namespace so we can overwrite it for debugging
 local afterEight = tonumber(GetTimeString():sub(0, 2)) >= 08
diff --git a/DailyAutoShare.txt b/DailyAutoShare.txt
index 478dc1a..ced1372 100644
--- a/DailyAutoShare.txt
+++ b/DailyAutoShare.txt
@@ -1,6 +1,6 @@
 ## Title: DailyAutoShare
 ## Author: manavortex
-## Version: 3.6
+## Version: 3.61
 ## APIVersion: 100025
 ## SavedVariables: DAS_Settings DAS_Globals
 ## DependsOn: LibStub LibCustomMenu LibAddonMenu-2.0
diff --git a/DasLog.lua b/DasLog.lua
index ff6cde1..ddfab5c 100644
--- a/DasLog.lua
+++ b/DasLog.lua
@@ -88,6 +88,21 @@ function DAS.GetQuestStatus(questName)
   return DAS_STATUS_OPEN
 end

+
+local typeTable = "table"
+local function isEmpty(tbl)
+  if not tbl then return true end
+  local ret = true
+  for key, value in pairs(tbl) do
+    if type(value) == typeTable then
+      ret = ret and ({} == value or isEmpty(value))
+      else
+      ret = false
+    end
+  end
+  return ret
+end
+
 function DAS.GetLogIndex(questName)
 	return DAS.QuestNameTable[questName] or 0
 end