diff options
author | Andrey Andreev <narf@devilix.net> | 2016-03-16 11:19:34 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-03-16 11:19:34 +0100 |
commit | 02ac187ce4789c5ab122a41e3b064ca923d98a82 (patch) | |
tree | 8f1a17ec42906e17d18129fd22300e66c90f3d7b /system/libraries | |
parent | 5576d2ca40666ada969fb2cb951fbddf8ca4ad8e (diff) |
Fix a Form_validation bug that unnecessarily modifes $_POST
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index ed4b9bccb..e4a518957 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -486,7 +486,7 @@ class CI_Form_validation { } // Now we need to re-set the POST data with the new, processed data - $this->_reset_post_array(); + empty($this->validation_data) && $this->_reset_post_array(); return ($total_errors === 0); } |