diff options
author | Andrey Andreev <narf@devilix.net> | 2015-12-14 11:57:09 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-12-14 11:57:09 +0100 |
commit | ce8fa5acfe0e7f9d8b974fa470201a9404667b3d (patch) | |
tree | 9decc0be59076c3f9b75ba5fe36a7b4a553e0724 /system/libraries | |
parent | af849696d43f5c3b68962af1ae5096151a6d9f1a (diff) |
Fix #4312
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Form_validation.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index a158225ee..c2212585d 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -415,12 +415,9 @@ class CI_Form_validation { */ public function run($group = '') { - // Do we even have any data to process? Mm? - $validation_array = empty($this->validation_data) ? $_POST : $this->validation_data; - if (count($validation_array) === 0) - { - return FALSE; - } + $validation_array = empty($this->validation_data) + ? $_POST + : $this->validation_data; // Does the _field_data array containing the validation rules exist? // If not, we look to see if they were assigned via a config file |