- Optimized messages sorting on servers without sort capability (#1485049)
| | |
| | | 2008/05/08 (alec) |
| | | ---------- |
| | | - Don't attempt to delete cache entries if enable_caching is FALSE (#1485051) |
| | | - Optimized messages sorting on servers without sort capability (#1485049) |
| | | |
| | | 2008/05/07 (davidke/richs) |
| | | ---------- |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | // return empty array if no messages found |
| | | if (!is_array($a_msg_headers) || empty($a_msg_headers)) { |
| | | return array(); |
| | |
| | | */ |
| | | function position_of($seqnum) |
| | | { |
| | | $c = count($this->sequence_numbers); |
| | | for ($pos = 0; $pos <= $c; $pos++) |
| | | { |
| | | if ($this->sequence_numbers[$pos] == $seqnum) |
| | | return $pos; |
| | | } |
| | | return -1; |
| | | $pos = array_search($seqnum, $this->sequence_numbers); |
| | | if ($pos === false) return -1; |
| | | return $pos; |
| | | } |
| | | |
| | | /** |