Skip to content

Commit

Permalink
Fix removeUsersFromCourseSession
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 5, 2016
1 parent 30936fc commit 8321000
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main/webservices/registration.soap.php
Expand Up @@ -1137,8 +1137,7 @@ function WSUnsubscribeTeacherFromSessionCourse($params)
$courseId = $params['course_id'];
$sessionId = $params['session_id'];

SessionManager::removeUsersFromCourseSession($userId, $sessionId, $courseId);

SessionManager::removeUsersFromCourseSession([$userId], $sessionId, $courseId);
$coaches = SessionManager::getCoachesByCourseSession($sessionId, $courseId);

$result = 0;
Expand All @@ -1152,7 +1151,7 @@ function WSUnsubscribeTeacherFromSessionCourse($params)
$result = 1;
}

if ($debug) error_log('Final Result: '. $result);
if ($debug) error_log('Final Result: '. $result);

return $result;
}
Expand Down

0 comments on commit 8321000

Please sign in to comment.