1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-01-25 23:03:24 +00:00
parent 71475eb911
commit 9d5640040d
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Doctrine_Validator_HtmlColor
*/
public function validate(Doctrine_Record $record, $key, $value, $args)
{
if ( ! preg_match("/^#{0,1}[0-9]{6}$/",$color)) {
if ( ! preg_match("/^#{0,1}[0-9]{6}$/", $value)) {
return false;
}
return true;

View File

@ -41,6 +41,6 @@ class Doctrine_Validator_Notblank
*/
public function validate(Doctrine_Record $record, $key, $value, $args)
{
return (trim($value) != "");
return (trim($value) != '');
}
}