Cope with no defined User Reports
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user