diff options
author | Andrey Andreev <narf@devilix.net> | 2019-01-04 13:41:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 13:41:47 +0100 |
commit | aaa4daae0548bce2efde484f60c801539b2ab9a6 (patch) | |
tree | f27c383487303a5f2b929afe6d3b9e8bf107f6b5 /system | |
parent | aef7781fab2dbc4438f819f7be3ab31bd1a8d8fb (diff) | |
parent | b84304303dcf06acd3382c5bd846e7e537f00edf (diff) |
Merge pull request #5659 from aanbar/validation_reset_data
Fix #5605
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
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 { |