diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-07-08 21:43:22 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-07-08 21:43:22 +0200 |
commit | adedaf05449112a5ede4a3bc722a9a153b4aa2a3 (patch) | |
tree | d9e6a538e140b5076a926151bbe261a960e84417 /system/libraries | |
parent | bd6116a63899c5efcf35e175b3db14b1f05c60a9 (diff) | |
parent | 0db81b6c82c2f86a6e9da26ab5501ba65cb4c4e1 (diff) |
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into feature/db_subdrivers
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Form_validation.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 353624100..b490a34ca 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -460,6 +460,12 @@ class CI_Form_validation { $this->_field_data[$field]['postdata'] = $validation_array[$field]; } + // Don't try to validate if we have no rules set + if (empty($row['rules'])) + { + continue; + } + $this->_execute($row, explode('|', $row['rules']), $this->_field_data[$field]['postdata']); } |