Skip to content

Commit

Permalink
Styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zoaked committed Sep 22, 2015
1 parent 3fa8486 commit cf05861
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions system/libraries/Form_validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1584,14 +1584,16 @@ public function encode_php_tags($str)
* @param bool
* @return CI_Form_validation
*/
public function reset_validation($keep_config=false)
public function reset_validation($keep_config = FALSE)
{
$this->_field_data = array();
if( ! $keep_config)
$this->_config_rules = array();
$this->_error_array = array();
$this->_error_messages = array();
$this->error_string = '';
if ( ! $keep_config)
{
$this->_config_rules = array();
}
return $this;
}

Expand Down

0 comments on commit cf05861

Please sign in to comment.