summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-05-13 21:15:23 +0200
committerAndrey Andreev <narf@bofh.bg>2012-05-13 21:15:23 +0200
commitfff6c2a3caa1ce14e58fcb3ee0d937d17985eea1 (patch)
treedae1bcdf1cd626b03d4585d86682b0d95a9898f7 /system
parent46d53fb8799eb2f84798f0e7a5f57b065c2482e2 (diff)
Improve the solution for issue #1342
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 73f607be8..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 (isset($validation_array[$field]))
+ elseif (isset($validation_array[$field]) && $validation_array[$field] !== '')
{
$this->_field_data[$field]['postdata'] = $validation_array[$field];
}