Browse Source

bugfix unlimited backup files fails

root 4 năm trước cách đây
mục cha
commit
57579786a7
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      v2/models/BackupSchedule.php

+ 3 - 1
v2/models/BackupSchedule.php

@@ -209,7 +209,9 @@ class BackupSchedule extends AbstractObject
             "starttime" => $this->getStarttime(),
         );
         if($this->getMaxfiles()){
-            $data['maxfiles'] = (int) $this->getMaxfiles();
+            if((int) $this->getMaxfiles() > 0){
+                $data['maxfiles'] = (int) $this->getMaxfiles();
+            }
         }
 
         if ($this->getStorage())