Notnull validator no longer checks for empty strings
This commit is contained in:
parent
7bff012bcb
commit
3e47532e07
@ -40,9 +40,6 @@ class Doctrine_Validator_Notnull
|
||||
*/
|
||||
public function validate(Doctrine_Record $record, $key, $value)
|
||||
{
|
||||
if ($value === null || $value === '') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !is_null($value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user