Skip to content

Commit

Permalink
fix: fuel#52
Browse files Browse the repository at this point in the history
  • Loading branch information
Delpfine committed Jul 24, 2016
1 parent c4f39d3 commit 338afd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rule/Required.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function validate($value, $field = null, $allFields = null)
return false;
}

return ($value === 0 or $value === false or ! empty($value));
return ! ($value === false or $value === null or $value === '' or $value === array());
}

}

0 comments on commit 338afd9

Please sign in to comment.