summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/core/value.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/core/value.lua b/server/src/core/value.lua
index 53d5c749..d1933684 100644
--- a/server/src/core/value.lua
+++ b/server/src/core/value.lua
@@ -197,10 +197,8 @@ end
function mt:removeUri(uri)
if self._child then
self._child[uri] = nil
- self:rawEachField(function (field)
- if field.value then
- field.value:removeUri(uri)
- end
+ self:rawEachField(function (key, field)
+ field.value:removeUri(uri)
end)
end
if self._info then