Ticket #176 (closed defect: fixed)
spellchecker creates php notices when the content is empty
| Reported by: | liedekef@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin_Fullscreen | Version: | |
| Severity: | normal | Keywords: | spellchecker php |
| Cc: |
Description
In the file plugins/SpellChecker/spell-check-logic.php, there's a section:
if (trim($text) != "") { ... }
Now the lines just after this section:
$infolines .= '"Language Used":"'.$lang.'",'; $infolines .= '"Mispelled words":"'.$counter.'",'; $infolines .= '"Total words suggested":"'.$suggest_count.'",'; $infolines .= '"Total Lines Checked":"'.$returnlines.'"'; $infolines .= '};'; $varlines = substr($varlines, 0, strlen($varlines) - 1); echo $varlines.'};'.$infolines.'</script>';
should be in this section, as otherwise the variables $infolines, $suggest_count etc ... are not initialized and thus give php notice warnings when the text is empty.
Franky
