This commit is contained in:
parent
71475eb911
commit
9d5640040d
@ -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;
|
||||
|
@ -41,6 +41,6 @@ class Doctrine_Validator_Notblank
|
||||
*/
|
||||
public function validate(Doctrine_Record $record, $key, $value, $args)
|
||||
{
|
||||
return (trim($value) != "");
|
||||
return (trim($value) != '');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user