From 4cd087ea2eb8d1dbc8a063b41cffcd5df35d7df6 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 13 Sep 2015 08:50:16 -0400
Subject: [PATCH] Fixed mailvelope-generated messages structure (required Mail_Mime-1.10.0)

---
 program/lib/Roundcube/rcube_spellcheck_googie.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/program/lib/Roundcube/rcube_spellcheck_googie.php b/program/lib/Roundcube/rcube_spellcheck_googie.php
index 3777942..6ed11d1 100644
--- a/program/lib/Roundcube/rcube_spellcheck_googie.php
+++ b/program/lib/Roundcube/rcube_spellcheck_googie.php
@@ -1,6 +1,6 @@
 <?php
 
-/*
+/**
  +-----------------------------------------------------------------------+
  | This file is part of the Roundcube Webmail client                     |
  |                                                                       |
@@ -55,6 +55,10 @@
     function check($text)
     {
         $this->content = $text;
+
+        if (empty($text)) {
+            return $this->matches = array();
+        }
 
         // spell check uri is configured
         $url = rcube::get_instance()->config->get('spellcheck_uri');
@@ -171,6 +175,4 @@
 
         return $result;
     }
-
 }
-

--
Gitblit v1.9.1