Aleksander Machniak
2013-06-25 8f42c32c4545aa3048f0e8bc4bd85b046f2dad1f
Improve code readability
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_spellchecker.php 2 ●●● patch | view | raw | blame | history
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";
        }