summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/core/MY_Input.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/core/MY_Input.php b/application/core/MY_Input.php
index ef7af5528..4d43774c0 100644
--- a/application/core/MY_Input.php
+++ b/application/core/MY_Input.php
@@ -26,7 +26,13 @@ class MY_Input extends CI_Input {
public function post_array($key) {
$ret = parent::post($key);
- if (!is_array($ret)) {
+ if ($ret === false) {
+ return false;
+ } elseif (!is_array($ret)) {
+ $data = [
+ "key" => $key,
+ "ret" => $ret
+ ];
throw new \exceptions\UserInputException("input/invalid-form-field", "Invalid input", $data);
}
return $ret;