summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-25 09:55:00 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-25 09:55:00 +0200
commita54cff4c569f74f7ec1b2ab8379b7ad1820a8af9 (patch)
tree8b0f9c9eaf39f64f2ab1f1b882744bd4b6bb58a1 /program/lib
parent5a7b7ce039c5bffc370ec79aea5eba6043c908ec (diff)
Fix error when spell-checking an empty text (#1489831)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_spellcheck_googie.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_spellcheck_googie.php b/program/lib/Roundcube/rcube_spellcheck_googie.php
index 3777942a6..f9e450fdd 100644
--- a/program/lib/Roundcube/rcube_spellcheck_googie.php
+++ b/program/lib/Roundcube/rcube_spellcheck_googie.php
@@ -56,6 +56,10 @@ class rcube_spellcheck_googie extends rcube_spellcheck_engine
{
$this->content = $text;
+ if (empty($text)) {
+ return $this->matches = array();
+ }
+
// spell check uri is configured
$url = rcube::get_instance()->config->get('spellcheck_uri');