[*] косметика массивов
This commit is contained in:
1 parent
77823b2056
commit
d317ac8e5d
1 file changed
+2
-2
+2
-2
@@ -250,10 +250,10 @@ class CBackup
|
|||||||
|
|
||||||
$files = glob($this->outputFolder . "/*");
|
$files = glob($this->outputFolder . "/*");
|
||||||
|
|
||||||
$deleted = array();
|
$deleted = [];
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
if ((time() - filemtime($file)) > ($this->ttl * 86400)) {
|
if ((time() - filemtime($file)) > ($this->ttl * 86400)) {
|
||||||
array_push($deleted, $file);
|
$deleted[] = $file;
|
||||||
unlink($file);
|
unlink($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user