summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-08 14:23:41 +0100
committerJannik Schönartz2017-03-08 14:23:41 +0100
commit5443dd9bd6106bdfe74eca03f053b76641b7d502 (patch)
tree38bbf8caace1d0913563b3ca79e0feec6d5a4d5b /modules-available/locationinfo/page.inc.php
parentMerge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff)
downloadslx-admin-5443dd9bd6106bdfe74eca03f053b76641b7d502.tar.gz
slx-admin-5443dd9bd6106bdfe74eca03f053b76641b7d502.tar.xz
slx-admin-5443dd9bd6106bdfe74eca03f053b76641b7d502.zip
API: setCredentials without json_encode
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index b3bf7c66..578a773c 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -347,7 +347,7 @@ class Page_LocationInfo extends Page
// Instance the backend and set the credentials to check if the Authentification is accepted.
$backendType = CourseBackend::getInstance($db['servertype']);
- $backendType->setCredentials(json_encode($db['credentials'], true), $db['serverurl'], $db['serverid']);
+ $backendType->setCredentials(json_decode($db['credentials'], true), $db['serverurl'], $db['serverid']);
$connection = $backendType->checkConnection();
if ($connection === true) {