Skip to content

Commit 74b3743

Browse files
committed
String type primary key should also wrap into an array during db update
1 parent a570783 commit 74b3743

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public function update($id = null, $data = null): bool
740740
{
741741
$escape = null;
742742

743-
if (is_numeric($id))
743+
if (is_numeric($id) || is_string($id))
744744
{
745745
$id = [$id];
746746
}

0 commit comments

Comments
 (0)