Przeglądaj źródła

Fix Edit postegresql config page error (#3252)

Jaap Marcus 3 lat temu
rodzic
commit
ec4061e621
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      web/edit/server/postgresql/index.php

+ 1 - 1
web/edit/server/postgresql/index.php

@@ -49,7 +49,7 @@ if (!empty($_POST["save"])) {
 		$new_conf = $mktemp_output[0];
 		$fp = fopen($new_conf, "w");
 		fwrite($fp, str_replace("\r\n", "\n", $_POST["v_config"]));
-		fclose($new_conf);
+		fclose($fp);
 		exec(
 			HESTIA_CMD . "v-change-sys-service-config " . $new_conf . " postgresql " . $v_restart,
 			$output,