mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-07 01:07:05 +02:00
Fix fclose() incorrect variable
fclose() is using incorrect variable $new_conf should be $fp to properly close fopen
This commit is contained in:
@@ -30,7 +30,7 @@ if (!empty($_POST['save'])) {
|
||||
$new_conf = $mktemp_output[0];
|
||||
$fp = fopen($new_conf, 'w');
|
||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_options']));
|
||||
fclose($new_conf);
|
||||
fclose($fp);
|
||||
exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." postgresql-hba ".$v_restart, $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
Reference in New Issue
Block a user