diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index 7b02824..102e3b5 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -395,7 +395,7 @@
 			return FALSE;

 		}

 		// IP cannot start with 0

-		if (substr($ip_segments[0], 0, 1) == 0)

+		if (substr($ip_segments[0], 0, 1) == '0')

 		{

 			return FALSE;

 		}