diff --git a/model/Model.php b/model/Model.php index c57ea9b..53278c5 100644 --- a/model/Model.php +++ b/model/Model.php @@ -107,7 +107,7 @@ abstract class Model */ public function update($data, $where) { - if (is_int($where)) { + if (is_int($where) || $where === (string) (int) $where) { $where = $this->identify($this->key) . '=' . (int) $where; } return $this->db->update($this->table(), $data, $where);