- Timestamp:
- 12/12/12 10:37:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zpush/backend/expresso/providers/contactProvider.php
r7633 r7644 169 169 if ($result_contact == FALSE) throw new Exception(pg_last_error($this->db)); 170 170 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 } 174 174 if(isset($row_contact[4])) { 175 175 $message->nickname = utf8_encode($row_contact[4]); … … 596 596 597 597 // 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 } 601 601 if(isset($message->nickname)) { 602 602 $arrayContact["alias"] = utf8_decode($message->nickname);
Note: See TracChangeset
for help on using the changeset viewer.