mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Split the various calls here to avoid php warnings with new versions.
This commit is contained in:
parent
3e643dba70
commit
b3bbed5812
@ -746,7 +746,10 @@ function cleanup_backupcache($lock = false) {
|
||||
unlink($backup);
|
||||
continue;
|
||||
}
|
||||
$tocheck = array_shift(explode('.', array_pop(explode('-', $backup))));
|
||||
$backupexp = explode('-', $backup);
|
||||
$backupexp = explode('.', array_pop($backupexp));
|
||||
$tocheck = array_shift($backupexp);
|
||||
unset($backupexp);
|
||||
if(!in_array($tocheck, $baktimes)) {
|
||||
$i = true;
|
||||
if($g['booting'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user