From: pengbo Date: Wed, 10 May 2017 00:09:34 +0000 (+0900) Subject: Fix PHP Notice: Undefined variable. X-Git-Tag: V3_6_2~5 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=fcb55ce0f92bd4abe1c2cc21d7f453f48b446574;p=pgpooladmin.git Fix PHP Notice: Undefined variable. Per bug297. --- diff --git a/install/checkParameter.php b/install/checkParameter.php index c546bfa..5ff9f95 100644 --- a/install/checkParameter.php +++ b/install/checkParameter.php @@ -179,8 +179,8 @@ if (isset($_POST['pcp_hostname']) && $_POST['pcp_hostname']) { $proc_user_info = posix_getpwuid(posix_geteuid()); $pcppass_file = "{$proc_user_info['dir']}/.pcppass"; +$msgPcpPassFile = ''; if (3.5 <= $version) { - $msgPcpPassFile = ''; if (! is_file($pcppass_file)) { $msgPcpPassFile = 'File not found'; } elseif (fileowner($pcppass_file) != $proc_user_info['uid']) {