diff options
Diffstat (limited to 'system/libraries')
-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*";
}
|