From f3704e18d89e4065cede8509256d7fbf483b7fe6 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 04 Apr 2006 17:46:27 -0400 Subject: [PATCH] Added labels for nextpage/previouspage --- program/lib/imap.inc | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 73eb970..97286c4 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -1407,18 +1407,18 @@ 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; + $data = @strtotime($val->date); + if ($data == false) + $data = $val->timestamp; } else { - $data=$a[$key]->$field; + $data = $val->$field; if (is_string($data)) $data=strtoupper(str_replace($stripArr, "", $data)); } -- Gitblit v1.9.1