|
@@ -163,13 +163,15 @@ for ($i=0; $i<sizeof($sqspell_output); $i++){
|
|
*/
|
|
*/
|
|
if (!$SQSPELL_EREG("\n$sqspell_word\n", $words)){
|
|
if (!$SQSPELL_EREG("\n$sqspell_word\n", $words)){
|
|
$sqspell_symb=intval($tmparray[3])-1;
|
|
$sqspell_symb=intval($tmparray[3])-1;
|
|
- if (!$misses[$sqspell_word]) {
|
|
|
|
|
|
+ if (!isset($misses[$sqspell_word])) {
|
|
$misses[$sqspell_word] = $right;
|
|
$misses[$sqspell_word] = $right;
|
|
$missed_words[$errors] = $sqspell_word;
|
|
$missed_words[$errors] = $sqspell_word;
|
|
$errors++;
|
|
$errors++;
|
|
}
|
|
}
|
|
- if ($locations[$sqspell_word]){
|
|
|
|
|
|
+ if (isset($locations[$sqspell_word])){
|
|
$locations[$sqspell_word] .= ', ';
|
|
$locations[$sqspell_word] .= ', ';
|
|
|
|
+ } else {
|
|
|
|
+ $locations[$sqspell_word] = '';
|
|
}
|
|
}
|
|
$locations[$sqspell_word] .= "$current_line:$sqspell_symb";
|
|
$locations[$sqspell_word] .= "$current_line:$sqspell_symb";
|
|
}
|
|
}
|