diff --git a/lib/App/Netdisco/Web.pm b/lib/App/Netdisco/Web.pm index 4af59e44..75158bfc 100644 --- a/lib/App/Netdisco/Web.pm +++ b/lib/App/Netdisco/Web.pm @@ -143,6 +143,7 @@ push @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} }, # sort the reports which have been loaded, by their label foreach my $cat (@{ setting('_report_order') }) { + setting('_reports_menu')->{ $cat } ||= []; setting('_reports_menu')->{ $cat } = [ sort { setting('_reports')->{$a}->{'label'} cmp