diff --git a/src/util/libbl.lua b/src/util/libbl.lua index 0078a1d..4a0d523 100644 --- a/src/util/libbl.lua +++ b/src/util/libbl.lua @@ -653,7 +653,7 @@ function bl.unhook(pkg, name, time) if bl._hooks[pkg][name] then if not time then bl._hooks[pkg][name] = nil - if table.isempty(bl._hooks[pkg]) then + if table.empty(bl._hooks[pkg]) then bl._hooks[pkg] = nil deactivatePackage(pkg) end @@ -663,7 +663,7 @@ function bl.unhook(pkg, name, time) error('bl.unhook: argument #3: time must be nil or one of '.. '\'before\' \'after\' \'override\'', 2) end bl._hooks[pkg][name][time] = nil - if table.isempty(bl._hooks[pkg][name]) and table.empty(bl._hooks[pkg]) then + if table.empty(bl._hooks[pkg][name]) and table.empty(bl._hooks[pkg]) then bl._hooks[pkg] = nil deactivatePackage(pkg) end