From d317ac8e5d7e97d1e64347e5111d80dfd28e3f24 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Tue, 18 Jan 2022 11:28:30 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20=D0=BA=D0=BE=D1=81=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CBackup.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CBackup.class.php b/CBackup.class.php index 2944590..7e36707 100644 --- a/CBackup.class.php +++ b/CBackup.class.php @@ -250,10 +250,10 @@ class CBackup $files = glob($this->outputFolder . "/*"); - $deleted = array(); + $deleted = []; foreach ($files as $file) { if ((time() - filemtime($file)) > ($this->ttl * 86400)) { - array_push($deleted, $file); + $deleted[] = $file; unlink($file); } }