summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2018-06-26 02:54:57 +0200
committertianhe1986 <w1s2j3229@163.com>2018-06-26 02:54:57 +0200
commit82584355c38abd18b00878c8f860ea4e7e60bf12 (patch)
tree56274462d05b9e1da712decf316362f6148c5870 /system
parent8729b2f1e54ed19f18cf31ba5c11a2953a7e4274 (diff)
Using `isset`.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system')
-rw-r--r--system/core/Input.php4
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);
}
// --------------------------------------------------------------------