Ticket #176 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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

Change History

Changed 8 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:117

Note: See TracTickets for help on using tickets.