diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:55:00 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:55:00 +0200 |
commit | a54cff4c569f74f7ec1b2ab8379b7ad1820a8af9 (patch) | |
tree | 8b0f9c9eaf39f64f2ab1f1b882744bd4b6bb58a1 /program/steps/utils/spell_html.inc | |
parent | 5a7b7ce039c5bffc370ec79aea5eba6043c908ec (diff) |
Fix error when spell-checking an empty text (#1489831)
Diffstat (limited to 'program/steps/utils/spell_html.inc')
-rw-r--r-- | program/steps/utils/spell_html.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/utils/spell_html.inc b/program/steps/utils/spell_html.inc index 27b14acef..5935dc13f 100644 --- a/program/steps/utils/spell_html.inc +++ b/program/steps/utils/spell_html.inc @@ -35,7 +35,7 @@ $result['id'] = $request['id']; $spellchecker = new rcube_spellchecker($lang); if ($request['method'] == 'checkWords') { - $result['result'] = $spellchecker->get_words($data); + $result['result'] = empty($data) ? array() : $spellchecker->get_words($data); } else if ($request['method'] == 'getSuggestions') { $result['result'] = $spellchecker->get_suggestions($data); |