Fix PHP Notice: Undefined variable.
authorpengbo <[email protected]>
Wed, 10 May 2017 00:09:34 +0000 (09:09 +0900)
committerpengbo <[email protected]>
Wed, 10 May 2017 00:09:34 +0000 (09:09 +0900)
Per bug297.

install/checkParameter.php

index c546bfa628fa96a82bc06e229949ec7c125faaf6..5ff9f9570262612877a37cef28e6945f726b8ebf 100644 (file)
@@ -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']) {