Skip to content

Commit

Permalink
v2.1.0-b3: Considers all the imported recordings corresponding to a c…
Browse files Browse the repository at this point in the history
…ourse if no bigbluebuttonbn->id is indicated
  • Loading branch information
jfederico committed Jun 28, 2016
1 parent 5c8beab commit 090005d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1564,20 +1564,20 @@ function bigbluebutton_output_recording_table($bbbsession, $recordings, $tools=[
return $output;
}

function bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID) {
function bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID=NULL) {
global $DB;

if ( $bigbluebuttonbnID != NULL ) {
// Fetch only those related to the $courseID and $bigbluebuttonbnID requested
$recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'bigbluebuttonbnid' => $bigbluebuttonbnID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT));
} else {
// Fetch all the ones corresponding to the $courseID requested
$recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT));
// Fetch all the ones corresponding to the $courseID requested
$recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT));
}
return $recordings_imported;
}

function bigbluebuttonbn_getRecordingsImportedArray($courseID, $bigbluebuttonbnID) {
function bigbluebuttonbn_getRecordingsImportedArray($courseID, $bigbluebuttonbnID=NULL) {
$recordings_imported = bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID);
$recordings_imported_array = bigbluebuttonbn_import_get_recordings_imported($recordings_imported);
return $recordings_imported_array;
Expand Down

0 comments on commit 090005d

Please sign in to comment.