Ignore:
Timestamp:
05/23/12 10:26:35 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Corrigido valor de retorno da variável msgHasAttachments para API 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/mail/MessagesResource.php

    r6267 r6277  
    6969         
    7070                        if($this->getExpressoVersion() != "2.2") { 
    71                                 $msg['msgHasAttachments'] = $imap_msg['attachment']['number_attachments'] ? "1" : "0"; 
     71                                $msg['msgHasAttachments'] = $imap_msg['attachment'] ? "1" : "0"; 
    7272                        } 
    7373                        else{ 
    74                                 $msg['msgHasAttachments'] = $imap_msg['attachment'] ? "1" : "0"; 
     74                                $msg['msgHasAttachments'] = $imap_msg['attachment']['number_attachments'] ? "1" : "0"; 
    7575                        } 
    7676         
Note: See TracChangeset for help on using the changeset viewer.