Added fix

This commit is contained in:
Jose Gonzalez 2020-12-15 10:45:37 +01:00
parent f2eee8fde8
commit 397254e4d8
1 changed files with 1 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ else {
my $dbh = db_connect ($conf{'dbengine'}, $conf{'dbname'}, $conf{'dbhost'}, $conf{'dbport'}, $conf{'dbuser'}, $conf{'dbpass'});
my $history_dbh = undef;
is_metaconsole(\%conf);
if ($conf{'_history_db_enabled'} eq '1') {
if (defined($conf{'_history_db_enabled'}) && $conf{'_history_db_enabled'} eq '1') {
eval {
$conf{'encryption_key'} = enterprise_hook('pandora_get_encryption_key', [\%conf, $conf{'encryption_passphrase'}]);
$history_dbh = db_connect ($conf{'dbengine'}, $conf{'_history_db_name'}, $conf{'_history_db_host'}, $conf{'_history_db_port'}, $conf{'_history_db_user'}, pandora_output_password(\%conf, $conf{'_history_db_pass'}));