diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-20 12:44:15 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-20 12:44:15 +0100 |
commit | b3bbed581239629a005de61e0fd5e4a63f6ccccb (patch) | |
tree | 9b1df4d4caeeff553a715b7f28d76bda88e90f24 /etc/inc/config.lib.inc | |
parent | 3e643dba7055371f2036bcc6115dd0a0fcb5033b (diff) | |
download | pfsense-b3bbed581239629a005de61e0fd5e4a63f6ccccb.zip pfsense-b3bbed581239629a005de61e0fd5e4a63f6ccccb.tar.gz |
Split the various calls here to avoid php warnings with new versions.
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r-- | etc/inc/config.lib.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index 8dd2918..a7f6cbf 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -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']) |