From 8f42c32c4545aa3048f0e8bc4bd85b046f2dad1f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 25 Jun 2013 03:04:39 -0400 Subject: [PATCH] Improve code readability --- program/lib/Roundcube/rcube_spellchecker.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php index bd6cb67..166de9b 100644 --- a/program/lib/Roundcube/rcube_spellchecker.php +++ b/program/lib/Roundcube/rcube_spellchecker.php @@ -377,7 +377,7 @@ 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"; } -- Gitblit v1.9.1