Changeset 522

Show
Ignore:
Timestamp:
04/16/08 13:00:34 (8 months ago)
Author:
sidtheduck
Message:

Fix for ticket #149 - conditionals to keep '@' error suppression from failing on some systems and stopping the script

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/plog-admin-functions.php

    r517 r522  
    9797        }; 
    9898 
    99         @unlink($tmpname); 
     99        if (is_file($tmpname)){ 
     100                unlink($tmpname); 
     101        } 
    100102        $res = chmod($final_fqfn, 0755); 
    101103 
  • trunk/plog-functions.php

    r512 r522  
    512512        // if thumbnail file already exists and is generated after data for a thumbnail type 
    513513        // has been changed, then we assume that the thumbnail is valid. 
    514         $thumbnail_timestamp = @filemtime($thumbpath); 
    515          
    516         if (file_exists($thumbpath) && $thumb_config['timestamp'] < $thumbnail_timestamp) { 
    517                 return $thumburl; 
     514        if (file_exists($thumbpath){ 
     515                $thumbnail_timestamp = @filemtime($thumbpath); 
     516                if ($thumb_config['timestamp'] < $thumbnail_timestamp) { 
     517                        return $thumburl; 
     518                } 
    518519        } 
    519520