Aleksander Machniak
2012-07-30 cb190c0cf331c7cf2dd6e3aeb007a1e5b1bad65c
CS fixes
1 files modified
5 ■■■■■ changed files
program/include/rcube_spellchecker.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_spellchecker.php
@@ -235,8 +235,9 @@
            else if (!pspell_check($this->plink, $word)) {
                $suggestions = pspell_suggest($this->plink, $word);
                if (sizeof($suggestions) > self::MAX_SUGGESTIONS)
                    $suggestions = array_slice($suggestions, 0, self::MAX_SUGGESTIONS);
                if (sizeof($suggestions) > self::MAX_SUGGESTIONS) {
                    $suggestions = array_slice($suggestions, 0, self::MAX_SUGGESTIONS);
                }
                $matches[] = array($word, $pos, $len, null, $suggestions);
            }