diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-06-04 23:01:56 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-06-04 23:01:56 +0200 |
commit | 7a3b96e27988deeebeeff4469f5de3b9fb50918f (patch) | |
tree | 97dd195373aa1d16a5aee6e87df699327e1fdc85 | |
parent | c1acb410524414fa925c47834d124a3884b68dcb (diff) |
picky picky Jones adjusts some syntax
-rw-r--r-- | system/libraries/Input.php | 3 |
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*";
}
|