Cope with no defined User Reports

This commit is contained in:
Oliver Gorwits
2014-02-27 17:50:53 +00:00
parent 2e4992fe2a
commit bf1867a103
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2.024003 - 2014-02-27
[BUG FIXES]
* Cope with no defined User Reports
2.024002 - 2014-02-27 2.024002 - 2014-02-27
[NEW FEATURES] [NEW FEATURES]

View File

@@ -7,6 +7,9 @@ use Dancer::Plugin::Auth::Extensible;
use App::Netdisco::Web::Plugin; use App::Netdisco::Web::Plugin;
# in case user did not set
config->{reports} ||= {};
foreach my $r (keys %{setting('reports')}) { foreach my $r (keys %{setting('reports')}) {
my $report = setting('reports')->{$r}; my $report = setting('reports')->{$r};