Split the various calls here to avoid php warnings with new versions.

This commit is contained in:
Ermal LUÇI 2014-11-20 12:44:15 +01:00
parent 3e643dba70
commit b3bbed5812

View File

@ -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'])