summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pgconfig.php3
-rw-r--r--templates/pgconfig.tpl4
2 files changed, 6 insertions, 1 deletions
diff --git a/pgconfig.php b/pgconfig.php
index bc4233a..1ce0ea2 100644
--- a/pgconfig.php
+++ b/pgconfig.php
@@ -442,6 +442,9 @@ function writeConfigFile($configValue, $pgpoolConfigParamAll)
$param_names = getMultiParams();
foreach ($param_names as $group => $key_arr) {
+ if (! isset($configValue[$key_arr[0]])) {
+ continue;
+ }
for ($i = 0; $i < count($configValue[$key_arr[0]]); $i++) {
foreach ($key_arr as $key) {
$value = (isset($configValue[$key][$i])) ? $configValue[$key][$i] : NULL;
diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl
index 3a60b34..5424da0 100644
--- a/templates/pgconfig.tpl
+++ b/templates/pgconfig.tpl
@@ -93,6 +93,8 @@
{* --------------------------------------------------------------------- *}
{custom_tr_pgconfig param='enable_pool_hba'}
+ </tbody>
+ <tbody id="tb_enable_pool_hba_on">
{if paramExists('pool_passwd')}
{custom_tr_pgconfig param='pool_passwd'}
{/if}
@@ -108,7 +110,7 @@
{custom_tr_pgconfig param='ssl'}
</tbody>
- <tbody id="tb_ssl_1">
+ <tbody id="tb_ssl_on">
{custom_tr_pgconfig param='ssl_key'}
{custom_tr_pgconfig param='ssl_cert'}
{custom_tr_pgconfig param='ssl_ca_cert'}