Skip to content

Commit

Permalink
fix undefined value in header template
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jun 8, 2024
1 parent fd33413 commit 5cf761d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/Thruk/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ sub new {
}
my $req = Thruk::Request->new($env);
my $self = {
app => $app,
env => $env,
config => $config,
req => $req,
res => $req->new_response(200),
stats => $Thruk::Globals::c ? $Thruk::Globals::c->stats : Thruk::Stats->new(),
user => undef,
errors => [],
app => $app,
env => $env,
config => $config,
req => $req,
res => $req->new_response(200),
stats => $Thruk::Globals::c ? $Thruk::Globals::c->stats : Thruk::Stats->new(),
user => undef,
errors => [],
errored => 0,
};
$self->{'stash'} = Thruk::Config::get_default_stash($self, {
'time_begin' => $time_begin,
Expand Down

0 comments on commit 5cf761d

Please sign in to comment.