summaryrefslogtreecommitdiff
path: root/server/src/core/value.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/value.lua')
-rw-r--r--server/src/core/value.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/core/value.lua b/server/src/core/value.lua
index 6105c97c..900d022c 100644
--- a/server/src/core/value.lua
+++ b/server/src/core/value.lua
@@ -184,7 +184,9 @@ function mt:removeUri(uri)
if self._child then
for name, field in pairs(self._child) do
field.uris[uri] = nil
- if not next(field.uris) then
+ if next(field.uris) then
+ field.value:removeUri(uri)
+ else
self._child[name] = nil
end
end