Aleksander Machniak
2015-02-02 e8fc8d303a30658abd70419917a1373131802e28
program/lib/Roundcube/rcube_user.php
@@ -240,9 +240,11 @@
    /**
     * Return a list of all user emails (from identities)
     *
     * @param bool Return only default identity
     *
     * @return array List of emails (identity_id, name, email)
     */
    function list_emails()
    function list_emails($default = false)
    {
        if ($this->emails === null) {
            $this->emails = array();
@@ -259,7 +261,7 @@
            }
        }
        return $this->emails;
        return $default ? $this->emails[0] : $this->emails;
    }
    /**