diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-12 09:57:28 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-12 10:00:38 +0200 |
commit | a98f79532de302e01b4133289b21f920baefa223 (patch) | |
tree | 0abf64bd1f850eafa898fbee67bdd8941d1d0770 /program/include/rcube_result_thread.php | |
parent | 8361a48bdd2c365a82ed67ce652a83663149713c (diff) |
Fix is_error() returns wrong result for empty result set
Diffstat (limited to 'program/include/rcube_result_thread.php')
-rw-r--r-- | program/include/rcube_result_thread.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_result_thread.php b/program/include/rcube_result_thread.php index 889a27fc3..f8b0872f8 100644 --- a/program/include/rcube_result_thread.php +++ b/program/include/rcube_result_thread.php @@ -64,6 +64,8 @@ class rcube_result_thread // ...skip unilateral untagged server responses for ($i=0, $len=count($data); $i<$len; $i++) { if (preg_match('/^ THREAD/i', $data[$i])) { + // valid response, initialize raw_data for is_error() + $this->raw_data = ''; $data[$i] = substr($data[$i], 7); break; } |