Changeset 2651


Ignore:
Timestamp:
04/28/10 14:16:40 (14 years ago)
Author:
niltonneto
Message:

Ticket #1051 - Corrigido tratamento do retorno da função imagecreatefromstring().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/show_thumbs.php

    r2360 r2651  
    3535        $image_mail = imap_fetchbody($mb, $msg_num, $msg_part, FT_UID); 
    3636        $image = imap_base64($image_mail); 
    37         $image = imagecreatefromstring ($image); 
     37        $pic = @imagecreatefromstring ($image); 
    3838         
    39         header("Content-Type: ".$file_type); 
    40         header("Content-Disposition: inline"); 
    41   
    42         $pic = $image; 
    43     if ($pic) { 
     39        if($pic !== FALSE) { 
     40                header("Content-Type: ".$file_type); 
     41                header("Content-Disposition: inline");           
    4442        $width = imagesx($pic); 
    4543        $height = imagesy($pic); 
Note: See TracChangeset for help on using the changeset viewer.