summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-01-04 13:41:47 +0100
committerAndrey Andreev <narf@devilix.net>2019-01-04 13:44:11 +0100
commit063f5d8098e9bf09e7756d153ed92373ffdc676d (patch)
treec754f8c5c8beadf0078662330650caa07b1feec6 /system/libraries/Form_validation.php
parent0e59db6c207b3108565ef4ab6c18b81353478d91 (diff)
Merge pull request #5659 from aanbar/validation_reset_data
Fix #5605
Diffstat (limited to 'system/libraries/Form_validation.php')
-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 09ac92067..1bd55499a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -584,7 +584,7 @@ class CI_Form_validation {
{
if ($row['is_array'] === FALSE)
{
- isset($_POST[$field]) && $_POST[$field] = $row['postdata'];
+ isset($_POST[$field]) && $_POST[$field] = is_array($row['postdata']) ? NULL : $row['postdata'];
}
else
{