summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorHeesung Ahn <ahn.heesung@gmail.com>2015-03-18 23:49:22 +0100
committerHeesung Ahn <ahn.heesung@gmail.com>2015-03-18 23:49:22 +0100
commit0fc46caedd690b05141a0b80bc5d7bca9b72b61b (patch)
tree775362206f4f12a860a670dac5dcdd61eb72589b /system/core
parent90a6cadfa6b5ea4968102769a3eb72570ed5799e (diff)
Updated CI_Input unit test and fixed error "undefined offset" caused by using the same variable name, $i, twice for for loop inside for loop.
Signed-off-by:Heesung Ahn <ahn.heesung@gmail.com>
Diffstat (limited to 'system/core')
-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 6be4b9a6c..12332cf51 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -490,9 +490,9 @@ class CI_Input {
)
);
- for ($i = 0; $i < 8; $i++)
+ for ($j = 0; $j < 8; $j++)
{
- $ip[$i] = intval($ip[$i], 16);
+ $ip[$j] = intval($ip[$j], 16);
}
$sprintf = '%016b%016b%016b%016b%016b%016b%016b%016b';