From e03b941b9fae38ccee9e5fe38b48d5001435fc16 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 23 Jun 2021 21:03:21 -0700 Subject: [PATCH] Fix perl warning https://github.com/webmin/webmin/issues/1498 --- web-lib-funcs.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 109738920..cdeb40bff 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -4261,7 +4261,8 @@ if (defined(&theme_get_module_acl)) { # In case module's config expected to be user-based # only, we must not consider `noconfig` option at all. -if (&get_module_preferences_acl($m, 'allowed') eq "*") { +my $allowed = &get_module_preferences_acl($m, 'allowed'); +if ($allowed && $allowed eq "*") { $rv{'noconfig'} = 0; } return %rv;