Skip to content

Commit

Permalink
Merge pull request #437 from andorkerti/master
Browse files Browse the repository at this point in the history
Add support for double type in fill()
  • Loading branch information
daylightstudio authored Mar 7, 2018
2 parents 9109e83 + 88994c1 commit 1f341a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuel/modules/fuel/core/MY_Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -4783,6 +4783,10 @@ public function fill($values = array())
{
$this->$key = (float) $val;
}
else if ($field_info['type'] == 'double')
{
$this->$key = (double) $val;
}
else
{
$this->$key = (int) $val;
Expand Down

0 comments on commit 1f341a8

Please sign in to comment.