summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2018-12-24 18:00:43 +0100
committerAhmad Anbar <aanbar@gmail.com>2018-12-24 18:00:43 +0100
commitb84304303dcf06acd3382c5bd846e7e537f00edf (patch)
tree528817df886bc5f07f70b9b31376a8352b6823bc /system/libraries/Form_validation.php
parent292ad891948676ecc97ab7636e99dbb5aab1b0e4 (diff)
if we are not validating an array & the post data contains an array then nullify the post data for the field
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 24769417d..b53069d81 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
{