diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-09-17 19:25:57 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-09-17 19:25:57 +0200 |
commit | e8e2e76ed987d911ec878345e88d3c611a4b7b32 (patch) | |
tree | ae43d047a288e58d7e9c8e3ac8885dc12bc436a2 /program/include/rcube_result_index.php | |
parent | ba3cd80c0c61e679cef92a1f4f51e645090a1472 (diff) | |
parent | 32ba62889c1def94f555c3e683fc8087ee16c9b3 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/include/rcube_result_index.php')
-rw-r--r-- | program/include/rcube_result_index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_result_index.php b/program/include/rcube_result_index.php index cc1615d35..334ec8530 100644 --- a/program/include/rcube_result_index.php +++ b/program/include/rcube_result_index.php @@ -61,10 +61,14 @@ class rcube_result_index for ($i=0, $len=count($data); $i<$len; $i++) { $data_item = &$data[$i]; if (preg_match('/^ SORT/i', $data_item)) { + // valid response, initialize raw_data for is_error() + $this->raw_data = ''; $data_item = substr($data_item, 5); break; } else if (preg_match('/^ (E?SEARCH)/i', $data_item, $m)) { + // valid response, initialize raw_data for is_error() + $this->raw_data = ''; $data_item = substr($data_item, strlen($m[0])); if (strtoupper($m[1]) == 'ESEARCH') { |