Minor - Rename function isUserSusbcribedAsStudent() to isUserSubscribedAsStudent()

1.10.x
Yannick Warnier 10 years ago
parent 323a6c8e06
commit 7964fe977a
  1. 2
      main/inc/lib/auth.lib.php
  2. 2
      main/inc/lib/sessionmanager.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;
}

@ -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);

Loading…
Cancel
Save