diff options
author | Simon Rettberg | 2017-04-20 15:33:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-20 15:33:14 +0200 |
commit | acb88a5c685db42c1017ab928fd316b507f02093 (patch) | |
tree | 0ba29c8f9a445b738ea461bab0c055e5f8721257 /modules-available | |
parent | [locationinfo] Apply lower bound to refresh timeouts when saving config (diff) | |
download | slx-admin-acb88a5c685db42c1017ab928fd316b507f02093.tar.gz slx-admin-acb88a5c685db42c1017ab928fd316b507f02093.tar.xz slx-admin-acb88a5c685db42c1017ab928fd316b507f02093.zip |
[locationinfo] Set default options properly when adding new server
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index a03d6f1c..209de473 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -481,12 +481,10 @@ class Page_LocationInfo extends Page } } - if ($backend['typ'] == $dbresult['servertype']) { - if (isset($dbcredentials[$cred->property])) { - $credential['value'] = $dbcredentials[$cred->property]; - } else { - $credential['value'] = $cred->default; - } + if ($backend['typ'] == $dbresult['servertype'] && isset($dbcredentials[$cred->property])) { + $credential['value'] = $dbcredentials[$cred->property]; + } else { + $credential['value'] = $cred->default; } $selection = array(); |