Show
Ignore:
Timestamp:
06/30/08 02:26:07 (17 months ago)
Author:
takayama
Message:

Fixed BugId:80372
* Shows warning messages if GD-php was not available.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/php/lib/MTUtil.php

    r2595 r2651  
    13011301    $dest; 
    13021302    $thumb_name = $static_file_path.DIRECTORY_SEPARATOR.$image_path.DIRECTORY_SEPARATOR.$format; 
    1303     $thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name, 'png'); 
     1303    if (!$thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name, 'png')) { 
     1304        return ''; 
     1305    } 
    13041306    $basename = basename($dest); 
    13051307 
     
    13451347    $thumb_h = $height; 
    13461348    $dest; 
    1347     $thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name); 
     1349    if (!$thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name)) { 
     1350        return ''; 
     1351    } 
    13481352 
    13491353    # make url