diff options
author | Erich Eckner <git@eckner.net> | 2020-04-14 09:38:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-04-14 09:38:33 +0200 |
commit | 31e575401080b381a6132d3835db54e5e7b3d121 (patch) | |
tree | 2894f880e0efdc56aca82ee37a9851bd82fd6154 | |
parent | a441a330e70e73b88ce07ad502ac6e515f422e14 (diff) | |
download | sourceMirror-31e575401080b381a6132d3835db54e5e7b3d121.tar.xz |
mirror.php: ignore stat===false
-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)."'; ". |