summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-19 05:31:25 +0100
committerJannik Schönartz2017-03-19 05:31:25 +0100
commita8ae9f36c627e0db82b24a3833fccefa04c215cd (patch)
tree6c3f46b590a8a93f046ff70742a75b342816077c /modules-available/locationinfo/page.inc.php
parentSetCredentials error message is no longer ignored. (diff)
downloadslx-admin-a8ae9f36c627e0db82b24a3833fccefa04c215cd.tar.gz
slx-admin-a8ae9f36c627e0db82b24a3833fccefa04c215cd.tar.xz
slx-admin-a8ae9f36c627e0db82b24a3833fccefa04c215cd.zip
Locationinfo: admin-panel: Fixed a Bug where a space in a credentialname caused errors. Changes the checkbox to bs-switch.
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index dec022b2..ec024f48 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -119,8 +119,10 @@ class Page_LocationInfo extends Page
$tmptypeArray = $backend->getCredentials();
$credentialsJson = array();
+ $counter = 0;
foreach ($tmptypeArray as $key => $value) {
- $credentialsJson[$key] = Request::post($key);
+ $credentialsJson[$key] = Request::post($counter);
+ $counter++;
}
if ($serverid == 0) {
Database::exec('INSERT INTO `setting_location_info` (servername, serverurl, servertype, credentials) VALUES (:name, :url, :type, :credentials)',
@@ -460,7 +462,10 @@ class Page_LocationInfo extends Page
$credentials = $backendInstance->getCredentials();
$backend['credentials'] = array();
+
+ $counter = 0;
foreach ($credentials as $key => $value) {
+ $credential['uid'] = $counter;
$credential['name'] = $key;
$credential['type'] = $value[0];
$credential['title'] = $value[1];
@@ -496,6 +501,8 @@ class Page_LocationInfo extends Page
}
$backend['credentials'][] = $credential;
+
+ $counter++;
}
$serverBackends[] = $backend;
}