summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/locationinfo/api.inc.php2
-rw-r--r--modules-available/locationinfo/page.inc.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php
index 45e48064..31acb157 100644
--- a/modules-available/locationinfo/api.inc.php
+++ b/modules-available/locationinfo/api.inc.php
@@ -89,7 +89,7 @@ function getCalendar($idList) {
$resultarray = array();
foreach ($serverList as $server) {
$serverInstance = CourseBackend::getInstance($server['type']);
- $serverInstance->setCredentials(json_encode($server['credentials']), $server['serverurl'], $server['serverid']);
+ $serverInstance->setCredentials($server['credentials'], $server['serverurl'], $server['serverid']);
$calendarFromBackend = $serverInstance->fetchSchedule($server['idList']);
$formattedArray = array();
foreach ($calendarFromBackend as $key => $value) {
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) {