From 82584355c38abd18b00878c8f860ea4e7e60bf12 Mon Sep 17 00:00:00 2001 From: tianhe1986 Date: Tue, 26 Jun 2018 08:54:57 +0800 Subject: Using `isset`. Signed-off-by: tianhe1986 --- system/core/Input.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') 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); } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b