Skip to content

Commit 00eccc3

Browse files
committed
Fix possible lua error
1 parent ecc7f6a commit 00eccc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,8 +1996,8 @@ function PermoksAccountManager:ReplaceLabelOfDefaultCategory(category, oldLabel,
19961996
if categoryTbl and categoryTbl.childOrder[oldLabel] then
19971997
local index = categoryTbl.childOrder[oldLabel]
19981998

1999-
if categoryTbl.childs[index] ~= oldLabel then
2000-
for i, label in pairs(categoryTbl.childs[index]) do
1999+
if categoryTbl.childs[index] ~= oldLabel and categoryTbl.childs then
2000+
for i, label in pairs(categoryTbl.childs) do
20012001
if label == oldLabel then
20022002
index = i
20032003
break

0 commit comments

Comments
 (0)