diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Input.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index 81209d704..7f5f2e91d 100644 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -213,7 +213,7 @@ class CI_Input { public function post_get($index, $xss_clean = FALSE) { $output = $this->post($index, $xss_clean); - return ($output !== NULL) ? $output : $this->get($index, $xss_clean); + return isset($output) ? $output : $this->get($index, $xss_clean); } // -------------------------------------------------------------------- @@ -228,7 +228,7 @@ class CI_Input { public function get_post($index, $xss_clean = FALSE) { $output = $this->get($index, $xss_clean); - return ($output !== NULL) ? $output : $this->post($index, $xss_clean); + return isset($output) ? $output : $this->post($index, $xss_clean); } // -------------------------------------------------------------------- |