summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-06-04 23:01:56 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-06-04 23:01:56 +0200
commit7a3b96e27988deeebeeff4469f5de3b9fb50918f (patch)
tree97dd195373aa1d16a5aee6e87df699327e1fdc85 /system/libraries
parentc1acb410524414fa925c47834d124a3884b68dcb (diff)
picky picky Jones adjusts some syntax
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Input.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index 50b4d823d..8c08468bd 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -645,9 +645,8 @@ class CI_Input {
foreach ($words as $word)
{
$temp = '';
- $wordlen = strlen($word);
- for ($i = 0; $i < $wordlen; $i++)
+ for ($i = 0, $wordlen = strlen($word); $i < $wordlen; $i++)
{
$temp .= substr($word, $i, 1)."\s*";
}