Skip to content

Commit

Permalink
Correct default for 'system/acb' in write_config() to empty array ins…
Browse files Browse the repository at this point in the history
…tead of null
  • Loading branch information
Reid Linnemann committed May 24, 2024
1 parent 63d6bb4 commit 4eddd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/config.lib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ function write_config($desc="Unknown", $backup = true, $write_config_only = fals
}

// Try the core AutoConfigBackup system
$acb_config = config_get_path('system/acb');
$acb_config = config_get_path('system/acb', []);
if ($acb_config['enable'] == "yes" &&
(!isset($acb_config['frequency']) || $acb_config['frequency'] == "every") || file_exists("/tmp/forceacb")) {
if ($doacb) {
Expand Down

0 comments on commit 4eddd5a

Please sign in to comment.