From b84304303dcf06acd3382c5bd846e7e537f00edf Mon Sep 17 00:00:00 2001 From: Ahmad Anbar Date: Mon, 24 Dec 2018 19:00:43 +0200 Subject: if we are not validating an array & the post data contains an array then nullify the post data for the field --- system/libraries/Form_validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Form_validation.php') 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 { -- cgit v1.2.3-24-g4f1b