|
|
@ -602,7 +602,6 @@ class rcube_imap
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return empty array if no messages found
|
|
|
|
// return empty array if no messages found
|
|
|
|
if (!is_array($a_msg_headers) || empty($a_msg_headers)) {
|
|
|
|
if (!is_array($a_msg_headers) || empty($a_msg_headers)) {
|
|
|
|
return array();
|
|
|
|
return array();
|
|
|
@ -2837,14 +2836,10 @@ class rcube_header_sorter
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function position_of($seqnum)
|
|
|
|
function position_of($seqnum)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$c = count($this->sequence_numbers);
|
|
|
|
$pos = array_search($seqnum, $this->sequence_numbers);
|
|
|
|
for ($pos = 0; $pos <= $c; $pos++)
|
|
|
|
if ($pos === false) return -1;
|
|
|
|
{
|
|
|
|
|
|
|
|
if ($this->sequence_numbers[$pos] == $seqnum)
|
|
|
|
|
|
|
|
return $pos;
|
|
|
|
return $pos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sort method called by uasort()
|
|
|
|
* Sort method called by uasort()
|
|
|
|