Skip to content

Commit

Permalink
Fix error in postinstall in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 26, 2024
1 parent 47cf90f commit 8335d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postinstall.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sub module_install
{
# Enable virtualmin-htpasswd module once
my @p = split(/\s+/, $virtual_server::config{'plugins'});
my @ppe = split(/\s+/, $virtual_server::config{'plugins_postinstall_enabled'});
my @ppe = split(/\s+/, $virtual_server::config{'plugins_postinstall_enabled'} // '');
if (&indexof('virtualmin-nginx', @virtual_server::plugins) > -1 &&
&indexof($module_name, @p) == -1 &&
&indexof($module_name, @ppe) == -1) {
Expand Down

0 comments on commit 8335d64

Please sign in to comment.