diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-31 17:20:22 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-31 17:20:22 +0000 |
| commit | 1c411878766ea6b29947c7eab05a171cf4809a7d (patch) | |
| tree | 9154476e63ccf61a9dc11537403816286b35e0e2 | |
| parent | 3d95459b19a1c80fdeb2c55a552ecdcc66da009d (diff) | |
- Fixed handling of error in Net_Sieve::listScripts()
git-svn-id: https://svn.roundcube.net/trunk@4820 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | plugins/managesieve/Changelog | 2 | ||||
| -rw-r--r-- | plugins/managesieve/lib/rcube_sieve.php | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog index ca7967092..d78d5b264 100644 --- a/plugins/managesieve/Changelog +++ b/plugins/managesieve/Changelog @@ -1,3 +1,5 @@ +- Fixed handling of error in Net_Sieve::listScripts() + * version 4.2 [2011-05-24] ----------------------------------------------------------- - Moved elsif replacement code to handle only imports from other formats diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php index 932522d22..230b44bae 100644 --- a/plugins/managesieve/lib/rcube_sieve.php +++ b/plugins/managesieve/lib/rcube_sieve.php @@ -223,10 +223,12 @@ class rcube_sieve if (!$this->sieve) return $this->_set_error(SIEVE_ERROR_INTERNAL); - $this->list = $this->sieve->listScripts(); + $list = $this->sieve->listScripts(); - if (PEAR::isError($this->list)) + if (PEAR::isError($list)) return $this->_set_error(SIEVE_ERROR_OTHER); + + $this->list = $list; } return $this->list; |
