From d8513dbd9e8bb9c2972eacfdc85f82378c5e58ab Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 17 Apr 2025 22:08:53 -0700 Subject: [PATCH] Fix case where error is not called in a module --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 94d556edd..d87068fc3 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -1830,7 +1830,7 @@ elsif ($ENV{'REQUEST_URI'} =~ /json-error=1/) { print_json(\%jerror); } else { - &header($text{'error'}, "", undef, 0, $module_name ? 0 : 1); + &header($text{'error'}, "", undef, 0, &get_module_name() ? 0 : 1); my $hh = $miniserv::page_capture ? " captured" : ""; my $err_style = &read_file_contents("$root_directory/unauthenticated/errors.css"); if ($err_style) {