Skip to content

Commit 467a9ea

Browse files
committed
check offsetExists
1 parent 67ed804 commit 467a9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8188,7 +8188,7 @@ public function encode(Document $collection, Document $document, bool $applyDefa
81888188
}
81898189

81908190
// Continue on optional param with no default
8191-
if (is_null($value) && is_null($default) && !$document->offsetExists($key)) {
8191+
if (is_null($value) && is_null($default)) {
81928192
continue;
81938193
}
81948194

0 commit comments

Comments
 (0)