From a7fe5b12c38f9239b2f5c132b304c7a61cffaf1d Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Mon, 20 Jul 2020 14:22:56 +0300 Subject: [PATCH] Fix use of undefined warning https://github.com/virtualmin/virtualmin-gpl/issues/188#issuecomment-660958393 --- virtual_feature.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index 9a031fc..b36cc0f 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -489,7 +489,7 @@ sub feature_modify # Rename log files if needed my $new_alog = &virtual_server::get_apache_template_log($d, 0); my $new_elog = &virtual_server::get_apache_template_log($d, 1); - if ($old_alog && $old_elog && $old_alog ne $new_alog) { + if (defined($old_alog) && defined($old_elog) && $old_alog ne $new_alog) { &$virtual_server::first_print($text{'feat_modifylog'}); my $server = &find_domain_server($d); if (!$server) {