diff --git a/modules/orm/classes/Kohana/ORM.php b/modules/orm/classes/Kohana/ORM.php index 341b5b0..450fd4a 100644 --- a/modules/orm/classes/Kohana/ORM.php +++ b/modules/orm/classes/Kohana/ORM.php @@ -812,7 +812,7 @@ class Kohana_ORM extends Model implements serializable { // If the replacement value is the same as the original value, we dont need to update. // @note This assumes that the value returned from the DB is always a string. - if (array_key_exists($column, $this->_original_values) AND (string)$value === $this->_original_values[$column] AND array_key_exists($column, $this->_changed)) + if (array_key_exists($column, $this->_original_values) AND is_string($value) AND (string)$value === $this->_original_values[$column] AND array_key_exists($column, $this->_changed)) { unset($this->_changed[$column]);