Changeset 10273


Ignore:
Timestamp:
2006/12/06 09:59:29 (20 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/products/product.php

    r10037 r10273  
    560560    } 
    561561     
    562     // ¸µ²èÁü¥µ¥¤¥º¤ò¼èÆÀ 
    563     list($from_w, $from_h) = getimagesize($from_path); 
    564      
    565     // À¸À®Àè¤Î²èÁü¥µ¥¤¥º¤ò¼èÆÀ 
    566     $to_w = $objUpFile->width[$arrImageKey[$to_key]]; 
    567     $to_h = $objUpFile->height[$arrImageKey[$to_key]]; 
    568      
    569      
    570     if($forced) $objUpFile->save_file[$arrImageKey[$to_key]] = ""; 
    571      
    572     if(($objUpFile->temp_file[$arrImageKey[$to_key]] == "" and $objUpFile->save_file[$arrImageKey[$to_key]] == "")){ 
    573         $path = $objUpFile->makeThumb($from_path, $to_w, $to_h); 
    574         $objUpFile->temp_file[$arrImageKey[$to_key]] = basename($path); 
     562    if(file_exists($from_path)){ 
     563        // ¸µ²èÁü¥µ¥¤¥º¤ò¼èÆÀ 
     564        list($from_w, $from_h) = getimagesize($from_path); 
     565         
     566        // À¸À®Àè¤Î²èÁü¥µ¥¤¥º¤ò¼èÆÀ 
     567        $to_w = $objUpFile->width[$arrImageKey[$to_key]]; 
     568        $to_h = $objUpFile->height[$arrImageKey[$to_key]]; 
     569         
     570         
     571        if($forced) $objUpFile->save_file[$arrImageKey[$to_key]] = ""; 
     572         
     573        if(($objUpFile->temp_file[$arrImageKey[$to_key]] == "" and $objUpFile->save_file[$arrImageKey[$to_key]] == "")){ 
     574            $path = $objUpFile->makeThumb($from_path, $to_w, $to_h); 
     575            $objUpFile->temp_file[$arrImageKey[$to_key]] = basename($path); 
     576        } 
     577    }else{ 
     578        return ""; 
    575579    } 
    576580} 
Note: See TracChangeset for help on using the changeset viewer.