@ -43,7 +43,7 @@ else {
}
if ($err = $spellchecker->error()) {
raise_error(array('code' => 500, 'type' => 'php',
rcube::raise_error(array('code' => 500, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
'message' => sprintf("Spell check engine error: " . $err)),
true, false);
@ -46,6 +46,11 @@ else if ($request['method'] == 'learnWord') {
if ($error = $spellchecker->error()) {
'message' => sprintf("Spell check engine error: " . $error)),
echo '{"error":{"errstr":"' . addslashes($error) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}';
exit;