Fixing who is online if course was set see #3938

skala
Yoselyn Castillo 12 years ago
parent 618e1ab1e0
commit ab16fcaa06
  1. 6
      whoisonline.php

@ -14,6 +14,11 @@ if (!isset($_GET['cidReq'])) {
// including necessary files
require_once './main/inc/global.inc.php';
if(isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0 ) {
api_protect_course_script(true);
}
require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php';
$_SESSION['who_is_online_counter'] = 2;
@ -88,6 +93,7 @@ $(document).ready(function() {
});
</script>';
if ($_GET['chatid'] != '') {
//send out call request
$time = time();

Loading…
Cancel
Save