From 44644da749a43db531310f5c70c7a0dce060bd63 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 26 Dec 2022 21:14:13 +0100 Subject: [PATCH] set to no limit if limit = 0 --- inc/class.dc.translater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/class.dc.translater.php b/inc/class.dc.translater.php index 769b797..d48be52 100644 --- a/inc/class.dc.translater.php +++ b/inc/class.dc.translater.php @@ -357,6 +357,10 @@ class dcTranslater extends dcTranslaterDefaultSettings */ public static function isBackupLimit(string $id, string $root, int $limit = 10, bool $throw = false): bool { + if (!$limit) { + return false; + } + $count = 0; foreach (self::scandir($root) as $file) { if (!is_dir($root . '/' . $file)