Skip to content

Commit f948a35

Browse files
committed
Fix max 0
1 parent 7ec0e25 commit f948a35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5233,7 +5233,7 @@ public function increaseDocumentAttribute(
52335233
}
52345234
}
52355235

5236-
if ($max && ($document->getAttribute($attribute) + $value > $max)) {
5236+
if (!\is_null($max) && ($document->getAttribute($attribute) + $value > $max)) {
52375237
throw new LimitException('Attribute value exceeds maximum limit: ' . $max);
52385238
}
52395239

0 commit comments

Comments
 (0)