소스 검색

Warning removal "a la Tyler"

philippe_mingo 23 년 전
부모
커밋
4f6b596315
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      functions/strings.php

+ 2 - 1
functions/strings.php

@@ -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) {