mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Fix fclose() incorrect variable
fclose() is using incorrect variable $new_conf should be $fp to properly close fopen
This commit is contained in:
parent
54125174cb
commit
3a0c82a202
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ if (!empty($_POST['save'])) {
|
||||||
$new_conf = $mktemp_output[0];
|
$new_conf = $mktemp_output[0];
|
||||||
$fp = fopen($new_conf, 'w');
|
$fp = fopen($new_conf, 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config']));
|
||||||
fclose($new_conf);
|
fclose($fp);
|
||||||
exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." clamd ".$v_restart, $output, $return_var);
|
exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." clamd ".$v_restart, $output, $return_var);
|
||||||
check_return_code($return_var,$output);
|
check_return_code($return_var,$output);
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue