Opened 15 years ago

Closed 15 years ago

#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


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.


Change History (1)

comment:1 Changed 15 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in changeset:117

Note: See TracTickets for help on using tickets.