set to no limit if limit = 0
This commit is contained in:
parent
54618a5fea
commit
44644da749
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue