Skip to content

Commit 36fd340

Browse files
committed
fix: Revert check ID on update
1 parent 9b5e64b commit 36fd340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ public function update($id = null, $row = null): bool
973973
throw new InvalidArgumentException('update(): argument #1 ($id) should not be boolean.');
974974
}
975975

976-
if (! in_array($id, [null, 0, '0'], true) && (is_numeric($id) || is_string($id))) {
976+
if (is_numeric($id) || is_string($id)) {
977977
$id = [$id];
978978
}
979979

0 commit comments

Comments
 (0)