Aleksander Machniak
2012-07-31 8b34075755bcf104964079f9ffe8f0550869e1f0
program/include/rcube_spellchecker.php
@@ -228,8 +228,9 @@
            else if (!pspell_check($this->plink, $word)) {
                $suggestions = pspell_suggest($this->plink, $word);
                if (sizeof($suggestions) > self::MAX_SUGGESTIONS)
                if (sizeof($suggestions) > self::MAX_SUGGESTIONS) {
                    $suggestions = array_slice($suggestions, 0, self::MAX_SUGGESTIONS);
                }
                $matches[] = array($word, $pos, $len, null, $suggestions);
            }