Commit 3e47532e authored by romanb's avatar romanb

Notnull validator no longer checks for empty strings

parent 7bff012b
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment