summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Input.php')
-rwxr-xr-xsystem/core/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 2395501f3..2b36ea3c7 100755
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -374,7 +374,7 @@ class CI_Input {
public function valid_ip($ip)
{
// if php version >= 5.2, use filter_var to check validate ip.
- if(is_php('5.2'))
+ if(function_exists('filter_var'))
{
return (bool) filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
}