summaryrefslogtreecommitdiff
path: root/program/steps/utils/spell.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-03 12:15:12 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-03 12:15:12 +0200
commit107cbd1a0ebbf5eef195b19353a4ccd7f4aecc0e (patch)
tree8f9db7a546fe7fbec55d4baabe1ab805740eb23a /program/steps/utils/spell.inc
parent3db62ce1015c134ff7a6b83294f8c2cbf1f1a096 (diff)
parentb15cc7d6f4c77fb941c74670eb58fb07bd9c7d9c (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/steps/utils/spell.inc')
-rw-r--r--program/steps/utils/spell.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc
index a0dd35d27..b59fe7998 100644
--- a/program/steps/utils/spell.inc
+++ b/program/steps/utils/spell.inc
@@ -42,6 +42,13 @@ else {
$result = $spellchecker->get_xml();
}
+if ($err = $spellchecker->error()) {
+ raise_error(array('code' => 500, 'type' => 'php',
+ 'file' => __FILE__, 'line' => __LINE__,
+ 'message' => sprintf("Spell check engine error: " . $err)),
+ true, false);
+}
+
// set response length
header("Content-Length: " . strlen($result));