program/lib/Roundcube/rcube_result_index.php
@@ -30,9 +30,9 @@ protected $raw_data; protected $mailbox; protected $meta = array(); protected $meta = array(); protected $params = array(); protected $order = 'ASC'; protected $order = 'ASC'; const SEPARATOR_ELEMENT = ' '; @@ -40,9 +40,10 @@ /** * Object constructor. */ public function __construct($mailbox = null, $data = null) public function __construct($mailbox = null, $data = null, $order = null) { $this->mailbox = $mailbox; $this->order = $order == 'DESC' ? 'DESC' : 'ASC'; $this->init($data); }