Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -268,6 +268,12 @@ class _Date extends FormAbstract
|
||||
{
|
||||
throw new \InvalidArgumentException('form_required');
|
||||
}
|
||||
|
||||
/* Check it's valid */
|
||||
if ( !( $this->value instanceof \IPS\DateTime ) and $this->value !== NULL AND ( $this->options['unlimited'] === NULL OR $this->value !== $this->options['unlimited'] ) )
|
||||
{
|
||||
throw new \InvalidArgumentException( 'form_date_bad' );
|
||||
}
|
||||
|
||||
parent::validate();
|
||||
|
||||
@@ -276,12 +282,6 @@ class _Date extends FormAbstract
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Check it's valid */
|
||||
if ( !( $this->value instanceof \IPS\DateTime ) and $this->value !== NULL )
|
||||
{
|
||||
throw new \InvalidArgumentException( 'form_date_bad' );
|
||||
}
|
||||
|
||||
/* Check minimum */
|
||||
if ( $this->value and $this->options['min'] !== NULL and $this->options['min'] > $this->value )
|
||||
|
||||
Reference in new issue
Block a user