roundcubemail/program/lib/Roundcube/rcube_user.php
function set_default($iid)
    {
        if ($this->ID && $iid) {
            $this->db->query(
                "UPDATE ".$this->db->table_name('identities', true).
                " SET `standard` = '0'".
                " WHERE `user_id` = ? AND `identity_id` <> ?",
                $this->ID,
                $iid);

            unset($this->identities[0]);
        }
    }
function set_default($iid)
    {
        if ($this->ID && $iid) {
            $this->db->query(
                "UPDATE ".$this->db->table_name('identities', true).
                " SET `standard` = '0'".
                " WHERE `user_id` = ? AND `identity_id` <> ?",
                $this->ID,
                $iid);

            unset($this->identities[0]);
        }
    }
function set_default ( $ iid ) { if ( $ this -> ID && $ iid ) { $ this -> db -> query ( "UPDATE " . $ this -> db -> table_name ( 'identities' , true ) . " SET `standard` = '0'" . " WHERE `user_id` = ? AND `identity_id` <> ?" , $ this -> ID , $ iid ) ; unset ( $ this -> identities [ 0 ] ) ; } }
Make this identity the default one for this user

@param int $iid The identity ID
Make this identity the default one for this user