diff options
-rw-r--r-- | mirror.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -68,10 +68,11 @@ if (file_exists($pfad)) { $stat = stat($pfad); - if ($stat['size'] == 0) - unlink($pfad); + if ($stat !== false) { + if ($stat['size'] == 0) + unlink($pfad); + } } - if (! file_exists($pfad)) { passthru( "mkdir -p '".dirname($pfad)."'; ". |