diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-05-14 21:29:30 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-05-14 21:29:30 +0200 |
commit | 43c216b998ccf8c8208b237e9e0d9c468c8a82e5 (patch) | |
tree | ff019239050f430990c664ff3dbf61545291445d /system/libraries/Form_validation.php | |
parent | 9e0be2ba2179a93200d16a72c74e2ac61f9a71d4 (diff) | |
parent | fff6c2a3caa1ce14e58fcb3ee0d937d17985eea1 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patch
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index a52cad5ff..c396580be 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -448,7 +448,7 @@ class CI_Form_validation { { $this->_field_data[$field]['postdata'] = $this->_reduce_array($validation_array, $row['keys']); } - elseif ( ! empty($validation_array[$field])) + elseif (isset($validation_array[$field]) && $validation_array[$field] !== '') { $this->_field_data[$field]['postdata'] = $validation_array[$field]; } @@ -1005,7 +1005,7 @@ class CI_Form_validation { return (MB_ENABLED === TRUE) ? ($val <= mb_strlen($str)) - : ($val <= strlen(str)); + : ($val <= strlen($str)); } // -------------------------------------------------------------------- |