Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Fixed issue #2 added missing else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Apr 7, 2015
1 parent 480388d commit 9c2f67e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/IPub/FormDateTime/Controls/BaseControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ public function addRule($validator, $message = NULL, $arg = NULL)
} else {
throw new Nette\InvalidArgumentException('Provided rule argument is not valid. Date max rule expect \DateTime object.');
}

} else {
parent::addRule($validator, $message, $arg);
}

return $this;
Expand Down

0 comments on commit 9c2f67e

Please sign in to comment.