Fixed a buf for validation

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8890 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-25 08:19:54 +00:00
parent 32f81334d6
commit 6d14ce99ef

View file

@ -119,7 +119,7 @@ class Validator
* @param[in] (optional) array $fields Target fields. The keys of the array represents field's name, its values represents field's value.
* @return bool True if it is valid, FALSE otherwise.
*/
function validate($fields_=array()){
function validate($fields_=null){
if(is_array($fields_)) {
$fields = $fields_;
} else {