summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-25 09:04:39 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-25 09:04:39 +0200
commit8f42c32c4545aa3048f0e8bc4bd85b046f2dad1f (patch)
tree99945d455065379c45dc98a16495a4801df4b394 /program/lib/Roundcube
parent2b3a3b1407bf2f6a7019f921a177d99506e3b76c (diff)
Improve code readability
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r--program/lib/Roundcube/rcube_spellchecker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php
index bd6cb6759..166de9bfb 100644
--- a/program/lib/Roundcube/rcube_spellchecker.php
+++ b/program/lib/Roundcube/rcube_spellchecker.php
@@ -377,7 +377,7 @@ class rcube_spellchecker
if (!$store) {
$this->error = "Empty result from spelling engine";
}
- else if (preg_match('/<spellresult error="((?!0")[^"]+)"/', $store, $m)) {
+ else if (preg_match('/<spellresult error="([^"]+)"/', $store, $m) && $m[1]) {
$this->error = "Error code $m[1] returned";
}