@@ -, +, @@ --------- -- warnings -- only one specific type of warning -- noisy is eliminated --- C4/Auth.pm | 2 +- C4/Templates.pm | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -252,7 +252,7 @@ sub get_template_and_user { if ($flags) { foreach my $module ( keys %$all_perms ) { - if ( $flags->{$module} == 1 ) { + if ( defined($flags->{$module}) && $flags->{$module} == 1 ) { foreach my $subperm ( keys %{ $all_perms->{$module} } ) { $template->param( "CAN_user_${module}_${subperm}" => 1 ); } --- a/C4/Templates.pm +++ a/C4/Templates.pm @@ -161,6 +161,7 @@ sub _get_template_file { my $is_intranet = $interface eq 'intranet'; my $htdocs = C4::Context->config($is_intranet ? 'intrahtdocs' : 'opachtdocs'); my ($theme, $lang, $availablethemes) = themelanguage($htdocs, $tmplbase, $interface, $query); + $lang //= 'en'; my $filename = "$htdocs/$theme/$lang/modules/$tmplbase"; return ($htdocs, $theme, $lang, $filename); --