summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzoaked <zoaked@users.noreply.github.com>2015-09-22 04:41:07 +0200
committerzoaked <zoaked@users.noreply.github.com>2015-09-22 04:41:07 +0200
commitcf0586148b4a2901adc21575fb9487f9aeaa6892 (patch)
tree7ae91d4165d3ed7f4f946bd207b2db43f784f7e0
parent3fa8486605da66f5436d44cac16279233bb0cf47 (diff)
Styling changes
-rw-r--r--system/libraries/Form_validation.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index aca1d1da9..31f80e959 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1584,14 +1584,16 @@ class CI_Form_validation {
* @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;
}