Aleksander Machniak
2015-09-11 fef8537adbf12d200eca51d7d27fe597a43ebeda
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);
    }