Fix typo "whoIsOnlineInIhisSessionCount" + format code

pull/2487/head
jmontoyaa 7 years ago
parent 09680fd4f6
commit 19f7d58571
  1. 4
      main/inc/lib/banner.lib.php
  2. 3
      main/inc/lib/events.lib.php
  3. 1
      main/inc/lib/exercise.lib.php

@ -913,7 +913,7 @@ function getOnlineUsersInSessionCount($sessionId)
return apcu_fetch($apcVar);
}
$numberOnlineInCourse = whoIsOnlineInIhisSessionCount(
$numberOnlineInCourse = whoIsOnlineInThisSessionCount(
api_get_setting('time_limit_whosonline'),
$sessionId
);
@ -922,7 +922,7 @@ function getOnlineUsersInSessionCount($sessionId)
return $numberOnlineInCourse;
}
return whoIsOnlineInIhisSessionCount(
return whoIsOnlineInThisSessionCount(
api_get_setting('time_limit_whosonline'),
$sessionId
);

@ -1874,7 +1874,8 @@ class Event
c_id = ".$courseId." AND
session_id = ".$sessionId." AND
login_course_date > '$time' - INTERVAL 3600 SECOND
ORDER BY login_course_date DESC LIMIT 0,1";
ORDER BY login_course_date DESC
LIMIT 0,1";
$result = Database::query($sql);
// Ignore if we didn't find any course connection record in the last

@ -26,6 +26,7 @@ class ExerciseLib
* @param bool $show_comment
* @param null $exercise_feedback
* @param bool $show_answers
*
* @return bool|int
*/
public static function showQuestion(

Loading…
Cancel
Save