summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-30 18:22:48 +0200
committerAleksander Machniak <alec@alec.pl>2012-07-30 18:22:48 +0200
commitcb190c0cf331c7cf2dd6e3aeb007a1e5b1bad65c (patch)
tree6488964d23204264bb9d84e9417ad1c9f4008e7b /program/include
parent90fab855b79c865083b2fefc74b848d4b6e71aa6 (diff)
CS fixes
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_spellchecker.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_spellchecker.php b/program/include/rcube_spellchecker.php
index f38720bc8..18641eca8 100644
--- a/program/include/rcube_spellchecker.php
+++ b/program/include/rcube_spellchecker.php
@@ -235,8 +235,9 @@ class rcube_spellchecker
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);
}