summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-27 01:05:06 +0200
committerJannik Schönartz2017-03-27 01:05:06 +0200
commitadf21a303a2be913db8f323cb8e844c04e6f932c (patch)
tree045f331c08edecc5ac50727a644efc01ef422971 /modules-available/locationinfo/page.inc.php
parentBug das eine HisInOne Anfrage gestartet wird obwohl kein Shedule aktualisiert... (diff)
downloadslx-admin-adf21a303a2be913db8f323cb8e844c04e6f932c.tar.gz
slx-admin-adf21a303a2be913db8f323cb8e844c04e6f932c.tar.xz
slx-admin-adf21a303a2be913db8f323cb8e844c04e6f932c.zip
Bugfixes: serversettings option 1 is selected when switching backend type. Some minor empty array etc. fixes.
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php21
1 files changed, 17 insertions, 4 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index 6867a59f..2969f832 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -547,15 +547,28 @@ class Page_LocationInfo extends Page
}
}
+ $selection = array();
+
if (is_array($value)) {
- $selection = array();
+
+ $selfirst = true;
foreach ($value as $opt) {
$option['option'] = $opt;
- if ($opt == $credential['value']) {
- $option['active'] = true;
+ if (isset($credential['value'])) {
+ if ($opt == $credential['value']) {
+ $option['active'] = true;
+ } else {
+ $option['active'] = false;
+ }
} else {
- $option['active'] = false;
+ if ($selfirst) {
+ $option['active'] = true;
+ $selfirst = false;
+ } else {
+ $option['active'] = false;
+ }
}
+
$selection[] = $option;
}
$credential['type'] = "array";