From 5443dd9bd6106bdfe74eca03f053b76641b7d502 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 8 Mar 2017 14:23:41 +0100 Subject: API: setCredentials without json_encode --- modules-available/locationinfo/api.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/api.inc.php') 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) { -- cgit v1.2.3-55-g7522