1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Notnull validator no longer checks for empty strings

This commit is contained in:
romanb 2007-09-01 20:20:17 +00:00
parent 7bff012bcb
commit 3e47532e07

View File

@ -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);
}
}