aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup
diff options
context:
space:
mode:
Diffstat (limited to 'config/autoconfigbackup')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc
index 64a16101..ebd9dc08 100644
--- a/config/autoconfigbackup/autoconfigbackup.inc
+++ b/config/autoconfigbackup/autoconfigbackup.inc
@@ -74,7 +74,7 @@ function acb_custom_php_validation_command($post, &$input_errors) {
}
function acb_custom_php_resync_config_command() {
- if (is_file("/cf/conf/lastpfSbackup.txt") {
+ if (is_file("/cf/conf/lastpfSbackup.txt")) {
conf_mount_rw();
unlink("/cf/conf/lastpfSbackup.txt");
conf_mount_ro();
@@ -109,7 +109,11 @@ function test_connection($post) {
global $savemsg, $config, $g;
// Do nothing when booting
- if (platform_booting()) {
+ if (function_exists("platform_booting")) {
+ if (platform_booting()) {
+ return;
+ }
+ } elseif ($g['booting']) {
return;
}