Commit 9d564004 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 71475eb9
......@@ -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) != '');
}
}
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