Skip to content

Commit

Permalink
Merge pull request #1963 from vibbow/pr_fix_update_pk_issue
Browse files Browse the repository at this point in the history
String type primary key should also wrap into an array during db update
  • Loading branch information
lonnieezell authored Apr 25, 2019
2 parents 57020f7 + 74b3743 commit 7f922f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ public function update($id = null, $data = null): bool
{
$escape = null;

if (is_numeric($id))
if (is_numeric($id) || is_string($id))
{
$id = [$id];
}
Expand Down

0 comments on commit 7f922f0

Please sign in to comment.