Ignore:
Timestamp:
11/06/09 08:00:40 (14 years ago)
Author:
amuller
Message:

Ticket #725 - Corrigindo problema de todos os anexos quando sao baixados

File:
1 edited

Legend:

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

    r1595 r1597  
    486486                 
    487487                $tempDir = ini_get("session.save_path"); 
    488                 $tempSubDir = md5(microtime()); 
     488                $tempSubDir = $_SESSION['phpgw_session']['session_id']; 
    489489                $fileNames = ''; 
    490490                exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); 
     
    495495                $imap_attachment = new imap_attachment(); 
    496496                $attachments = $imap_attachment->download_attachment($this->mbox_stream, $id_number); 
    497                  
    498497                foreach($attachments as $i => $attachment){ 
    499498                        if($i && $i == 'names') 
     
    528527                } 
    529528                else  
    530                         $file = false; 
    531                                  
     529                        $file = false;   
    532530                return $file; 
    533531        } 
Note: See TracChangeset for help on using the changeset viewer.