Warning removal "a la Tyler"
[squirrelmail.git] / functions / strings.php
index 4481bd6ba5643f53cff2b3dafc25b5cb973084dc..722cedeca8bae5ddf2dac4cf28ee1cb3db17b2d4 100644 (file)
@@ -209,8 +209,9 @@ function translateText(&$body, $wrap_at, $charset) {
 
         $Quotes = 0;
         $pos = 0;
+       $j = strlen( $line );
 
-        while ( $line <> '' ) {
+        while ( $pos < $j ) {
             if ($line[$pos] == ' ') {
                 $pos ++;
             } else if (strpos($line, '&gt;', $pos) === $pos) {