summaryrefslogtreecommitdiffstats
path: root/system/libraries/Input.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Input.php')
-rw-r--r--system/libraries/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index fae188e3c..e66d48147 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -404,7 +404,7 @@ class CI_Input {
return FALSE;
}
// IP can not start with 0
- if (substr($ip_segments[0], 0, 1) == '0')
+ if ($ip_segments[0][0] == '0')
{
return FALSE;
}