diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-03-27 18:40:55 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-03-27 18:40:55 +0000 |
| commit | 482a13a6cef0aa5f591cda30ad67ab574ae8e044 (patch) | |
| tree | 5233764c321f908d73daf2f41d838a28012a37ac | |
| parent | 73a119867c38614c7df46855cf4a163328d8d121 (diff) | |
Removed date sorting patch
git-svn-id: https://svn.roundcube.net/trunk@173 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index 73eb97002..a9ad91ff7 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/program/lib/imap.inc @@ -39,7 +39,6 @@ - Added BCC and REFERENCE to the list of headers to fetch in iil_C_FetchHeaders() - Leave messageID unchanged in iil_C_FetchHeaders() - Avoid stripslahes in iil_Connect() - - Added patch to iil_SortHeaders() by Richard Green - Removed <br> from error messages (better for logging) - Removed some debuggers (echo ...) @@ -1407,21 +1406,14 @@ function iil_SortHeaders($a, $field, $flag){ and use that to sort the main array. */ - // create "index" array + // create "index" array $index=array(); reset($a); while (list($key, $val)=each($a)){ - if ($field=="timestamp"){ - $data = @strtotime($value->date); - if ($data != false) - $data = $timestamp; - } - else { - $data=$a[$key]->$field; - if (is_string($data)) - $data=strtoupper(str_replace($stripArr, "", $data)); - } + $data=$a[$key]->$field; + if (is_string($data)) + $data=strtoupper(str_replace($stripArr, "", $data)); $index[$key]=$data; } |
