summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-20 12:44:15 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-20 12:44:15 +0100
commitb3bbed581239629a005de61e0fd5e4a63f6ccccb (patch)
tree9b1df4d4caeeff553a715b7f28d76bda88e90f24 /etc/inc/config.lib.inc
parent3e643dba7055371f2036bcc6115dd0a0fcb5033b (diff)
downloadpfsense-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.inc5
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'])
OpenPOWER on IntegriCloud