Ignore:
Timestamp:
10/21/10 10:11:01 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1256 - Correcao do erro narrado no ticket em questão

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php

    r3380 r3385  
    5050        } 
    5151        // BEGIN of functions. 
    52         function open_mbox($folder = False) 
     52        function open_mbox($folder = False,$force_die=true) 
    5353        { 
    5454                if (is_resource($this->mbox)) 
    5555                        return $this->mbox; 
    5656                $folder = mb_convert_encoding($folder, "UTF7-IMAP","ISO_8859-1"); 
    57                 $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password) or die(serialize(array('imap_error' => $this->parse_error(imap_last_error())))); 
     57                                if($force_die)  
     58                        $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password) or die(serialize(array('imap_error' => $this->parse_error(imap_last_error())))); 
     59                else  
     60                        $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password); 
    5861                return $this->mbox; 
    5962         } 
Note: See TracChangeset for help on using the changeset viewer.