summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-20 15:33:14 +0200
committerSimon Rettberg2017-04-20 15:33:14 +0200
commitacb88a5c685db42c1017ab928fd316b507f02093 (patch)
tree0ba29c8f9a445b738ea461bab0c055e5f8721257 /modules-available/locationinfo/page.inc.php
parent[locationinfo] Apply lower bound to refresh timeouts when saving config (diff)
downloadslx-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/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php10
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();