Permalink
Browse files

Merge pull request #20 from johnpbloch/master

Validation for words returns the wrong boolean value
  • Loading branch information...
2 parents c45f6dd + c1fa499 commit d3fe197b204bb3535728bef2bfaf2b7250c1ec3f @Xeoncross committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Class/Core/Validation.php
@@ -315,7 +315,7 @@ protected function email_rule($data)
*/
protected function word_rule($data)
{
- return preg_match("/\W/", $data);
+ return ! preg_match("/\W/", $data);
}

0 comments on commit d3fe197

Please sign in to comment.