commit | 02ac187ce4789c5ab122a41e3b064ca923d98a82 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Mar 16 12:19:34 2016 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Wed Mar 16 12:19:34 2016 +0200 |
tree | 8f1a17ec42906e17d18129fd22300e66c90f3d7b | |
parent | 5576d2ca40666ada969fb2cb951fbddf8ca4ad8e [diff] [blame] |
Fix a Form_validation bug that unnecessarily modifes $_POST
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index ed4b9bc..e4a5189 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -486,7 +486,7 @@ } // 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); }