From 6e2f73259c80a31325cd9ce5e22ba990daa2b9bb Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 1 Mar 2017 15:39:01 +0100 Subject: API: Fixed Calendar function. --- .../locationinfo/inc/coursebackend/coursebackend_dummy.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/locationinfo/inc/coursebackend') diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php index 64cf29fd..7d05b037 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php @@ -39,11 +39,11 @@ class Coursebackend_Dummy extends CourseBackend { $calarray = array(); $calarray[] = $calendar; $x['calendar'] = $calarray; - $a[] = $x; + $a[$id] = $calarray; } - return json_encode($a, true); + return $a; } } -- cgit v1.2.3-55-g7522