diff --git a/system/Model.php b/system/Model.php index 7e5e6d69959c..b9baeec5e3d3 100644 --- a/system/Model.php +++ b/system/Model.php @@ -326,7 +326,7 @@ public function find($id = null) ->get(); $row = $row->getResult($this->tempReturnType); } - elseif (is_numeric($id)) + elseif (is_numeric($id) || is_string($id)) { $row = $builder->where($this->table.'.'.$this->primaryKey, $id) ->get();