Commit 76470677 authored by Nico Schallehn's avatar Nico Schallehn

0 Byte großer Cache löschen..

parent 9942d4ca
...@@ -759,7 +759,7 @@ class Media { ...@@ -759,7 +759,7 @@ class Media {
foreach ($files as $file){ foreach ($files as $file){
if (is_file($file)){ if (is_file($file)){
if ($now - filemtime($file) >= 60 * 60 * 24 * 1) { if (($now - filemtime($file) >= 60 * 60 * 24 * 1) OR (filesize($file) == 0)) {
unlink($file); unlink($file);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment