Changeset 2597


Ignore:
Timestamp:
04/20/10 09:31:32 (14 years ago)
Author:
amuller
Message:

Ticket #1047 - Não puxar o corpo quando a preferência não está habilitada

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2493 r2597  
    758758        function get_msg_sample($msg_number) 
    759759        { 
    760  
     760                $return = ""; 
     761                if( (!isset($this->preferences['preview_msg_subject']) || ($this->preferences['preview_msg_subject'] != "1")) &&  
     762                    (!isset($this->preferences['preview_msg_tip']    ) || ($this->preferences['preview_msg_tip']     != "1")) ) 
     763                { 
     764                        $return['body'] = ""; 
     765                        return $return; 
     766                } 
    761767 
    762768                include_once("class.message_components.inc.php"); 
    763769                $msg = &new message_components($this->mbox); 
    764                 $msg->fetch_structure($msg_number); 
    765                 $return = ""; 
    766  
    767                 if( (isset($this->preferences['preview_msg_subject']) && ($this->preferences['preview_msg_subject'] == "0")) && (isset($this->preferences['preview_msg_tip']) && ($this->preferences['preview_msg_tip'] == "0")) ) 
    768                 { 
    769                         $return['body'] = ""; 
    770                         return $return; 
    771                 } 
    772  
     770                $msg->fetch_structure($msg_number);      
    773771 
    774772 
Note: See TracChangeset for help on using the changeset viewer.