mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
sysutils/sfpt-backup: style sweep
This commit is contained in:
parent
576d1761ec
commit
79006b8817
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ class Sftp extends Base implements IBackupProvider
|
|||
if ($this->model->backupcount->asFloat() > 0) {
|
||||
rsort($remote_backups);
|
||||
if (count($remote_backups) > (int)$this->model->backupcount->getCurrentValue()) {
|
||||
for ($i = $this->model->backupcount->getCurrentValue() ; $i < count($remote_backups); $i++) {
|
||||
for ($i = $this->model->backupcount->getCurrentValue(); $i < count($remote_backups); $i++) {
|
||||
$this->del($remote_backups[$i]);
|
||||
}
|
||||
$remote_backups = $this->ls(sprintf('%s*.xml', $fileprefix));
|
||||
|
|
|
|||
Loading…
Reference in a new issue