Ignore:
Timestamp:
12/12/12 10:37:14 (11 years ago)
Author:
cristiano
Message:

Ticket #3209 - Adicionado suporte de imagens nos contatos, Desabilitados Contas compartilhadas no email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zpush/backend/expresso/providers/contactProvider.php

    r7633 r7644  
    169169            if ($result_contact == FALSE) throw new Exception(pg_last_error($this->db)); 
    170170            while ($row_contact = pg_fetch_row($result_contact)) { 
    171                 //if(isset($row_contact[3])) { 
    172                 //      $message->picture = base64_encode($row_contact[3]); 
    173                 //} 
     171                if(isset($row_contact[3]) && $row_contact[3] ) { 
     172                    $message->picture = base64_encode(pg_unescape_bytea( $row_contact[3]) ); 
     173                } 
    174174                if(isset($row_contact[4])) { 
    175175                    $message->nickname = utf8_encode($row_contact[4]); 
     
    596596 
    597597            // Incluir/Alterar registro na tabela phpgw_cc_contact no Banco de Dados 
    598             //if(isset($message->picture)) { 
    599             //  $arrayContact["photo"] = base64_decode($message->picture); 
    600             //} 
     598            if(isset($message->picture) && $message->picture) { 
     599                $arrayContact["photo"] = base64_decode($message->picture); 
     600            } 
    601601            if(isset($message->nickname)) { 
    602602                $arrayContact["alias"] = utf8_decode($message->nickname); 
Note: See TracChangeset for help on using the changeset viewer.