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:56:22 +0200
commit7fface125e7db1e7ab47bdfbda5306fa16ea2486 (patch)
treec7d6e5b2c7eb301617c26e9e304481c606b77cf1 /program/lib
parent115ba30dcd5efce3cd2647847bcc52d5324fcead (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');