summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-01-04 13:41:47 +0100
committerGitHub <noreply@github.com>2019-01-04 13:41:47 +0100
commitaaa4daae0548bce2efde484f60c801539b2ab9a6 (patch)
treef27c383487303a5f2b929afe6d3b9e8bf107f6b5
parentaef7781fab2dbc4438f819f7be3ab31bd1a8d8fb (diff)
parentb84304303dcf06acd3382c5bd846e7e537f00edf (diff)
Merge pull request #5659 from aanbar/validation_reset_data
Fix #5605
-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 98f79beb4..e38c44277 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -587,7 +587,7 @@ class CI_Form_validation {
{
if ($row['is_array'] === FALSE)
{
- isset($data[$field]) && $data[$field] = $row['postdata'];
+ isset($data[$field]) && $data[$field] = is_array($row['postdata']) ? NULL : $row['postdata'];
}
else
{