commit | 063f5d8098e9bf09e7756d153ed92373ffdc676d | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Jan 04 14:41:47 2019 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Fri Jan 04 14:44:11 2019 +0200 |
tree | c754f8c5c8beadf0078662330650caa07b1feec6 | |
parent | 0e59db6c207b3108565ef4ab6c18b81353478d91 [diff] [blame] |
Merge pull request #5659 from aanbar/validation_reset_data Fix #5605
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 09ac920..1bd5549 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -584,7 +584,7 @@ { 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 {