Skip to content

Commit

Permalink
Save Date Bugfix;
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorbov committed Jun 4, 2013
1 parent f464e83 commit 5cb1574
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/morph/property/Date.php
Expand Up @@ -36,11 +36,10 @@ public function getValue()
*/
public function setValue($value = null)
{
if (isset($value)) {
$this->value = (int)$value;
} else {
$this->value = null;
}
if (null === $value) {
return parent::setValue(null);
}
parent::setValue((int)$value);
}

/**
Expand Down

0 comments on commit 5cb1574

Please sign in to comment.