Skip to content

Commit

Permalink
fix using undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed May 19, 2023
1 parent 120df6d commit e59864a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/Thruk/Action/AddDefaults.pm
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,14 @@ sub add_defaults {

###############################
# read cached data
my $cached_data = $c->cache->get->{'global'} || {};
my $cached_data = {};
{
my $cache = $c->cache;
if($cache) {
my $cached = $c->cache->get;
$cached_data = $cached->{'global'} || {};
}
}

###############################
if(!$c->config->{'_lmd_federtion_checked'} && ($ENV{'THRUK_USE_LMD'} || $c->config->{'lmd_remote'})) {
Expand Down

0 comments on commit e59864a

Please sign in to comment.