diff options
author | thomascube <thomas@roundcube.net> | 2006-03-27 18:40:55 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-03-27 18:40:55 +0000 |
commit | 3062b3ef1883147c79fbdc8832ccb1a232a75f28 (patch) | |
tree | c1a2b77c31631540ddc5df681a5b32707072eb3c /program/lib/imap.inc | |
parent | 95c2c3ce977fc9962c544daed93f155b6b1c8069 (diff) |
Removed date sorting patch
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r-- | program/lib/imap.inc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 73eb97002..a9ad91ff7 100644 --- a/program/lib/imap.inc +++ b/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; } |