roundcubemail/program/lib/Roundcube/rcube_contacts.php
private function convert_db_data($sql_arr)
    {
        $record = array();
        $record['ID'] = $sql_arr[$this->primary_key];

        if ($sql_arr['vcard']) {
            unset($sql_arr['email']);
            $vcard = new rcube_vcard($sql_arr['vcard'], RCUBE_CHARSET, false, $this->vcard_fieldmap);
            $record += $vcard->get_assoc() + $sql_arr;
        }
        else {
            $record += $sql_arr;
            $record['email'] = explode(self::SEPARATOR, $record['email']);
            $record['email'] = array_map('trim', $record['email']);
        }

        return $record;
    }
private function convert_db_data($sql_arr)
    {
        $record = array();
        $record['ID'] = $sql_arr[$this->primary_key];

        if ($sql_arr['vcard']) {
            unset($sql_arr['email']);
            $vcard = new rcube_vcard($sql_arr['vcard'], RCUBE_CHARSET, false, $this->vcard_fieldmap);
            $record += $vcard->get_assoc() + $sql_arr;
        }
        else {
            $record += $sql_arr;
            $record['email'] = explode(self::SEPARATOR, $record['email']);
            $record['email'] = array_map('trim', $record['email']);
        }

        return $record;
    }
private function convert_db_data ( $ sql_arr ) { $ record = array ( ) ; $ record [ 'ID' ] = $ sql_arr [ $ this -> primary_key ] ; if ( $ sql_arr [ 'vcard' ] ) { unset ( $ sql_arr [ 'email' ] ) ; $ vcard = new rcube_vcard ( $ sql_arr [ 'vcard' ] , RCUBE_CHARSET , false , $ this -> vcard_fieldmap ) ; $ record += $ vcard -> get_assoc ( ) + $ sql_arr ; } else { $ record += $ sql_arr ; $ record [ 'email' ] = explode ( self :: SEPARATOR , $ record [ 'email' ] ) ; $ record [ 'email' ] = array_map ( 'trim' , $ record [ 'email' ] ) ; } return $ record ; }
Convert data stored in the database into output format
Convert data stored in the database into output format