Kyle Francis
2016-04-02 65225262f6bb524b93feb49178509cada3390ee3
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);
    }
@@ -133,7 +134,7 @@
     */
    public function is_error()
    {
        return $this->raw_data === null ? true : false;
        return $this->raw_data === null;
    }
    /**
@@ -143,7 +144,7 @@
     */
    public function is_empty()
    {
        return empty($this->raw_data) ? true : false;
        return empty($this->raw_data);
    }
    /**