From 7964fe977a1941834c3329fa5f053905cf4e7610 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 23 Feb 2015 11:34:59 -0500 Subject: [PATCH] Minor - Rename function isUserSusbcribedAsStudent() to isUserSubscribedAsStudent() --- main/inc/lib/auth.lib.php | 2 +- main/inc/lib/sessionmanager.lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/auth.lib.php b/main/inc/lib/auth.lib.php index b8a848829f..a45cf0be76 100755 --- a/main/inc/lib/auth.lib.php +++ b/main/inc/lib/auth.lib.php @@ -630,7 +630,7 @@ class Auth if ($session['nbr_courses'] > 0) { $session['coach_name'] = api_get_person_name($session['firstname'], $session['lastname']); $session['coach_name'] .= " ({$session['username']})"; - $session['is_subscribed'] = SessionManager::isUserSusbcribedAsStudent($session['id'], $userId); + $session['is_subscribed'] = SessionManager::isUserSubscribedAsStudent($session['id'], $userId); $sessionsToBrowse[] = $session; } diff --git a/main/inc/lib/sessionmanager.lib.php b/main/inc/lib/sessionmanager.lib.php index 857c89248e..a28f1aad2f 100755 --- a/main/inc/lib/sessionmanager.lib.php +++ b/main/inc/lib/sessionmanager.lib.php @@ -5224,7 +5224,7 @@ class SessionManager * @param int $userId The user id * @return boolean Whether is subscribed */ - public static function isUserSusbcribedAsStudent($sessionId, $userId) + public static function isUserSubscribedAsStudent($sessionId, $userId) { $sessionRelUserTable = Database::get_main_table(TABLE_MAIN_SESSION_USER);