summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Input.php')
-rw-r--r--system/core/Input.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 6f88b1972..9d8811cdd 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -635,8 +635,7 @@ class CI_Input {
*/
public function is_ajax_request()
{
- $req_source = $this->server('HTTP_X_REQUESTED_WITH');
- return ($req_source == 'XMLHttpRequest') ? TRUE : FALSE;
+ return ($this->server('HTTP_X_REQUESTED_WITH') === 'XMLHttpRequest');
}
}